CakeFest 2024: The Official CakePHP Conference

QuickHashIntSet::getSize

(PECL quickhash >= Unknown)

QuickHashIntSet::getSizeReturns the number of elements in the set

Açıklama

publicQuickHashIntSet::getSize(): int

Returns the number of elements in the set.

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 set.

Örnekler

Örnek 1 QuickHashIntSet::getSize() example

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

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

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

add a note

User Contributed Notes

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