• PHP Video Tutorials

PHP - mhash_get_block_size() Function



The mhash_get_block_size() function can get a block size of specified hash.

Syntax

int mhash_get_block_size( int $hash )

The mhash_get_block_size() function can return the size in bytes or false if the hash doesn't exist.

Example

<?php
   $nbrmh = mhash_count();
   for($hs = 0; $hs <= $nbrmh; $hs++) {
      $blks = mhash_get_block_size($hs);
      echo $blks;
   }
?>

Output

4162032202432428242016162016324286448641632403216448844
php_function_reference.htm
Advertisements