QuickHashIntHash::getSize

(PECL quickhash >= Unknown)

QuickHashIntHash::getSizeReturns the number of elements in the hash

Açıklama

publicQuickHashIntHash::getSize(): int

Returns the number of elements in the hash.

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

The number of elements in the hash.

Örnekler

Örnek 1 QuickHashIntHash::getSize() example

<?php
$hash
= new QuickHashIntHash( 8 );
var_dump( $hash->add( 2 ) );
var_dump( $hash->add( 3, 5 ) );
var_dump( $hash->getSize() );
?>

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

bool(true) bool(true) int(2)
To Top