QuickHashIntStringHash::getSize

(PECL quickhash >= Unknown)

QuickHashIntStringHash::getSizeReturns the number of elements in the hash

说明

public QuickHashIntStringHash::getSize ( void ) : int

Returns the number of elements in the hash.

返回值

The number of elements in the hash.

范例

Example #1 QuickHashIntStringHash::getSize() example

<?php
$hash 
= new QuickHashIntStringHash);
var_dump$hash->add2"two" ) );
var_dump$hash->add3) );
var_dump$hash->getSize() );
?>

以上例程的输出类似于:

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

相关文章
php informix 函数 returns the number of columns in the queryphp postgresql 函数 returns the type id oid for the corresponding field numberphp tidy 函数 returns the number of tidy accessibility warnings encountered for specified documentphp tidy 函数 returns the number of tidy configuration errors encountered for specified documentphp locale returns a key value array of locale id subtag elementsphp mongodb driver writeresult returns the number of documents selected for updatephp mongodb driver writeresult returns the number of existing documents updatedphp mysqli stmt returns the number of parameter for the given statementphp mysqlnduhconnection returns the number of warnings from the last query for the given linkphp oci collection returns the maximum number of elements in the collectionphp quickhashinthash returns the number of elements in the hashphp quickhashinthash this method returns a serialized version of the hashphp quickhashintset returns the number of elements in the setphp quickhashintstringhash this method checks whether a key is part of the hashphp quickhashintstringhash this method retrieves a value from the hash by its keyphp quickhashintstringhash returns the number of elements in the hashphp quickhashintstringhash this method returns a serialized version of the hashphp quickhashstringinthash returns the number of elements in the hashphp solrquery returns the maximum number of query terms that will be included in any generated queryphp splpriorityqueue counts the number of elements in the queue
关注编程学问公众号