PHP 8.3.4 Released!

QuickHashIntStringHash::getSize

(PECL quickhash >= Unknown)

QuickHashIntStringHash::getSizeReturns the number of elements in the hash

Descripción

public QuickHashIntStringHash::getSize(): int

Returns the number of elements in the hash.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

The number of elements in the hash.

Ejemplos

Ejemplo #1 QuickHashIntStringHash::getSize() example

<?php
$hash
= new QuickHashIntStringHash( 8 );
var_dump( $hash->add( 2, "two" ) );
var_dump( $hash->add( 3, 5 ) );
var_dump( $hash->getSize() );
?>

El resultado del ejemplo sería algo similar a:

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

add a note

User Contributed Notes

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