mhash_count

mhash_count -- Get the highest available hash id

Description

int mhash_count(void );

mhash_count() returns the highest available hash id. Hashes are numbered from 0 to this hash id.

Example 1. Traversing all hashes

  1 
  2 <?php
  3 
  4 $nr = mhash_count();
  5 
  6 for($i = 0; $i <= $nr; $i++) {
  7     echo sprintf("The blocksize of %s is %d\n", 
  8             mhash_get_hash_name($i),
  9             mhash_get_block_size($i));
 10 }
 11 ?>
 12