QuickHashStringIntHash
PHP Manual

QuickHashStringIntHash::getSize

(Não há informação de versão disponível, talvez apenas no SVN)

QuickHashStringIntHash::getSize — Returns the number of elements in the hash

Descrição

public int QuickHashStringIntHash::getSize ( void )

Returns the number of elements in the hash.

Parâmetros

key

The key of the entry to add.

Valor Retornado

The number of elements in the hash.

Exemplos

Exemplo #1 QuickHashStringIntHash::getSize() example

<?php
$hash 
= new QuickHashStringIntHash( 8 );
var_dump( $hash->add( "two", 2 ) );
var_dump( $hash->add( "three", 5 ) );
var_dump( $hash->getSize() );
?>

O exemplo acima irá imprimir algo similar à:

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


QuickHashStringIntHash
PHP Manual