QuickHashStringIntHash
PHP Manual

QuickHashStringIntHash::getSize

(Bir sürüm bilgisi bulunamadı; sadece SVN'de olabilir.)

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

Açıklama

public int QuickHashStringIntHash::getSize ( void )

Returns the number of elements in the hash.

Değiştirgeler

key

The key of the entry to add.

Dönen Değerler

The number of elements in the hash.

Örnekler

Örnek 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() );
?>

Yukarıdaki örnek şuna benzer bir çıktı üretir:

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


QuickHashStringIntHash
PHP Manual