CakeFest 2024: The Official CakePHP Conference

QuickHashIntSet::getSize

(PECL quickhash >= Unknown)

QuickHashIntSet::getSizeReturns the number of elements in the set

Beschreibung

publicQuickHashIntSet::getSize(): int

Returns the number of elements in the set.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

The number of elements in the set.

Beispiele

Beispiel #1 QuickHashIntSet::getSize() example

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

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

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

add a note

User Contributed Notes

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