(沒有版本資訊,可能只在 Git 中)
QuickHashStringIntHash::getSize — 傳回雜湊中的元素數量
這個函式沒有參數。
雜湊表中的元素數量。
範例 #1 QuickHashStringIntHash::getSize() 範例
<?php
$hash = new QuickHashStringIntHash( 8 );
var_dump( $hash->add( "two", 2 ) );
var_dump( $hash->add( "three", 5 ) );
var_dump( $hash->getSize() );
?>
上述範例的輸出結果類似於:
bool(true) bool(true) int(2)