array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'fr', ), 'this' => array ( 0 => 'quickhashintstringhash.getsize.php', 1 => 'QuickHashIntStringHash::getSize', ), 'up' => array ( 0 => 'class.quickhashintstringhash.php', 1 => 'QuickHashIntStringHash', ), 'prev' => array ( 0 => 'quickhashintstringhash.get.php', 1 => 'QuickHashIntStringHash::get', ), 'next' => array ( 0 => 'quickhashintstringhash.loadfromfile.php', 1 => 'QuickHashIntStringHash::loadFromFile', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/quickhash/quickhashintstringhash/getsize.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL quickhash >= Unknown)
QuickHashIntStringHash::getSize — Returns the number of elements in the hash
Returns the number of elements in the hash.
Cette fonction ne contient aucun paramètre.
The number of elements in the hash.
Exemple #1 QuickHashIntStringHash::getSize() example
<?php
$hash = new QuickHashIntStringHash( 8 );
var_dump( $hash->add( 2, "two" ) );
var_dump( $hash->add( 3, 5 ) );
var_dump( $hash->getSize() );
?>
Résultat de l'exemple ci-dessus est similaire à :
bool(true) bool(true) int(2)