<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.mcrypt.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.mcrypt-list-modes.php',
    1 => 'mcrypt_list_modes',
    2 => 'サポートされる全てのモードの配列を取得する',
  ),
  'up' => 
  array (
    0 => 'ref.mcrypt.php',
    1 => 'Mcrypt 関数',
  ),
  'prev' => 
  array (
    0 => 'function.mcrypt-list-algorithms.php',
    1 => 'mcrypt_list_algorithms',
  ),
  'next' => 
  array (
    0 => 'function.mcrypt-module-close.php',
    1 => 'mcrypt_module_close',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/mcrypt/functions/mcrypt-list-modes.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.mcrypt-list-modes" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mcrypt_list_modes</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.2, PHP 5, PHP 7 &lt; 7.2.0, PECL mcrypt &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">mcrypt_list_modes</span> &mdash; <span class="dc-title"> サポートされる全てのモードの配列を取得する</span></p>

 </div>
 <div id="function.mcrypt-list-modes-refsynopsisdiv">
  <div class="warning"><strong class="warning">警告</strong><p class="simpara">この関数は PHP 7.1.0 で
<em>非推奨</em>となり、PHP 7.2.0 で<em>削除</em>
されました。この関数に頼らないことを強く推奨します。</p></div>
 </div>
 <div class="refsect1 description" id="refsect1-function.mcrypt-list-modes-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>mcrypt_list_modes</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$lib_dir</code><span class="initializer"> = ini_get(&quot;mcrypt.modes_dir&quot;)</span></span>): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="simpara">
   <code class="parameter">lib_dir</code> にあるすべてのサポートするモードの一覧を取得します。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.mcrypt-list-modes-parameters">
  <h3 class="title">パラメータ</h3>
  <dl>
   
    <dt><code class="parameter">lib_dir</code></dt>
    <dd>
     <span class="simpara">
      すべてのモードが存在するディレクトリを指定します。
      指定しない場合は、
      <var class="filename">php.ini</var> ディレクティブ <code class="literal">mcrypt.modes_dir</code> を使用します。
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.mcrypt-list-modes-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="simpara">
   サポートするすべてのモードを配列で返します。
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.mcrypt-list-modes-examples">
  <h3 class="title">例</h3>
  <div class="example" id="example-1">
   <p><strong>例1 <span class="function"><strong>mcrypt_list_modes()</strong></span> の例</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />    $modes </span><span style="color: #007700">= </span><span style="color: #0000BB">mcrypt_list_modes</span><span style="color: #007700">();<br /><br />    foreach (</span><span style="color: #0000BB">$modes </span><span style="color: #007700">as </span><span style="color: #0000BB">$mode</span><span style="color: #007700">) {<br />        echo </span><span style="color: #DD0000">"</span><span style="color: #0000BB">$mode</span><span style="color: #DD0000"> &lt;br /&gt;\n"</span><span style="color: #007700">;<br />    }<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>
    上の例は、デフォルトのモードディレクトリにあるサポートされる
    全てのアルゴリズムの一覧を出力します。<var class="filename">php.ini</var> ディレクティブの
    <code class="literal">mcrypt.modes_dir</code> でこれが設定されていない場合、mcrypt の
    デフォルトディレクトリ(<var class="filename">/usr/local/lib/libmcrypt</var>)が使用されます。
   </p></div>
  </div>
 </div>

</div><?php manual_footer($setup); ?>