★ wanayoo — archive 1999 http://www.php.net/manual/function.mhash-count.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to mhash
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
mhash
* mhash_get_hash_name
* mhash_get_block_size
* mhash_count
* mhash
Manual: mhash_count
View the source code for this pageSearch the site



Previous page
 mhash_get_block_size
 Updated
Sat, 12 Aug 2000
mhash 
Next page


mhash_count

(PHP3 >= 3.0.9, PHP4 )

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


<?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));
}
?>
      


 About Notes


Previous page
 mhash_get_block_size
 Updated
Sat, 12 Aug 2000
mhash 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.