mhash_count
取得哈稀 ID 的最大值。
語法: int mhash_count(void);
返回值: 整數
函數種類: 編碼處理
本函數用來取得哈稀演算的最大 ID 值。在使用哈稀計算時,會從 0 開始計數到使用的數值。本函數不用輸入參數。
<?php $nr = mhash_count(); for($i = 0; $i <= $nr; $i++) { echo sprintf("哈稀 %s 的區塊大小為 %d\n", mhash_get_hash_name($i), mhash_get_block_size($i)); } ?>
整理: 夕垌菪姬 (天地JPLOP)
|