<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.mhash.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.mhash-count.php',
    1 => 'mhash_count',
    2 => '利用可能なハッシュ ID の最大値を得る',
  ),
  'up' => 
  array (
    0 => 'ref.mhash.php',
    1 => 'Mhash 関数',
  ),
  'prev' => 
  array (
    0 => 'function.mhash.php',
    1 => 'mhash',
  ),
  'next' => 
  array (
    0 => 'function.mhash-get-block-size.php',
    1 => 'mhash_get_block_size',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/mhash/functions/mhash-count.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.mhash-count" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mhash_count</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">mhash_count</span> &mdash; <span class="dc-title">利用可能なハッシュ ID の最大値を得る</span></p>

 </div>

 <div id="function.mhash-count-refsynopsisdiv">
  <div class="warning"><strong class="warning">警告</strong><p class="simpara">この関数は PHP 8.1.0 で
<em>非推奨</em>になります。この関数に頼らないことを強く推奨します。</p></div>
 </div>
 
 <div class="refsect1 description" id="refsect1-function.mhash-count-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="attribute"><a href="class.deprecated.php">#[\Deprecated]</a> </span><br>
   <span class="methodname"><strong>mhash_count</strong></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   利用可能なハッシュ ID の最大値を取得します。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.mhash-count-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">この関数にはパラメータはありません。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.mhash-count-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   利用可能なハッシュ ID の最大値を返します。
   ハッシュは、0 からこのハッシュ ID までの数字となります。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.mhash-count-changelog">
  <h3 class="title">変更履歴</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>バージョン</th>
       <th>説明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.1.0</td>
       <td>
        この関数は、推奨されなくなりました。
        <a href="ref.hash.php" class="link"><code class="literal">hash_*()</code> 関数</a> を代わりに使って下さい。
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.mhash-count-examples">
  <h3 class="title">例</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>例1 全ハッシュをループする</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br />$nr </span><span style="color: #007700">= </span><span style="color: #0000BB">mhash_count</span><span style="color: #007700">();<br /><br />for (</span><span style="color: #0000BB">$i </span><span style="color: #007700">= </span><span style="color: #0000BB">0</span><span style="color: #007700">; </span><span style="color: #0000BB">$i </span><span style="color: #007700">&lt;= </span><span style="color: #0000BB">$nr</span><span style="color: #007700">; </span><span style="color: #0000BB">$i</span><span style="color: #007700">++) {<br />    echo </span><span style="color: #0000BB">sprintf</span><span style="color: #007700">(</span><span style="color: #DD0000">"The blocksize of %s is %d\n"</span><span style="color: #007700">,<br />        </span><span style="color: #0000BB">mhash_get_hash_name</span><span style="color: #007700">(</span><span style="color: #0000BB">$i</span><span style="color: #007700">),<br />        </span><span style="color: #0000BB">mhash_get_block_size</span><span style="color: #007700">(</span><span style="color: #0000BB">$i</span><span style="color: #007700">));<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>

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