mhash_count

Gets the highest available hash ID

&warn.deprecated.function-8-1-0;
&reftitle.description; `int` `mhash_count`

Gets the highest available hash ID.

&reftitle.parameters; &no.function.parameters;
&reftitle.returnvalues;

Returns the highest available hash ID. Hashes are numbered from 0 to this hash ID.

&reftitle.changelog;

&Version; | &Description;
8.1.0 | This function has been deprecated. Use the `hash_*()` functions instead.

&reftitle.examples;

### Traversing all hashes

    <?php

    $nr = mhash_count();

    for ($i = 0; $i <= $nr; $i++) {
        echo sprintf("The blocksize of %s is %d\n",
            mhash_get_hash_name($i),
            mhash_get_block_size($i));
    }
    ?>