array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'it', ), 'this' => array ( 0 => 'quickhashintstringhash.getsize.php', 1 => 'QuickHashIntStringHash::getSize', 2 => 'Returns the number of elements in the hash', ), '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', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

QuickHashIntStringHash::getSize

(PECL quickhash >= Unknown)

QuickHashIntStringHash::getSizeReturns the number of elements in the hash

Descrizione

public QuickHashIntStringHash::getSize(): int

Returns the number of elements in the hash.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

The number of elements in the hash.

Esempi

Example #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() );
?>

Il precedente esempio visualizzerĂ  qualcosa simile a:

bool(true)
bool(true)
int(2)