QuickHashIntSet::getSize

(PECL quickhash >= Unknown)

QuickHashIntSet::getSizeReturns the number of elements in the set

Description

publicQuickHashIntSet::getSize(): int

Returns the number of elements in the set.

Parameters

This function has no parameters.

Return Values

The number of elements in the set.

Examples

Example #1 QuickHashIntSet::getSize() example

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

The above example will output something similar to:

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

add a note

User Contributed Notes

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant