PHP - Fonction mhash_get_block_size ()

le mhash_get_block_size() La fonction peut obtenir une taille de bloc du hachage spécifié.

Syntaxe

int mhash_get_block_size( int $hash )

La fonction mhash_get_block_size () peut retourner la taille en octets ou false si le hachage n'existe pas.

Exemple

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

Production

4162032202432428242016162016324286448641632403216448844