CakeFest 2024: The Official CakePHP Conference

QuickHashIntSet::getSize

(PECL quickhash >= Unknown)

QuickHashIntSet::getSizeReturns the number of elements in the set

説明

publicQuickHashIntSet::getSize(): int

Returns the number of elements in the set.

パラメータ

この関数にはパラメータはありません。

戻り値

The number of elements in the set.

例1 QuickHashIntSet::getSize() example

<?php
$set
= new QuickHashIntSet( 8 );
var_dump( $set->add( 2 ) );
var_dump( $set->add( 3 ) );
var_dump( $set->getSize() );
?>

上の例の出力は、 たとえば以下のようになります。

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

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top