Dutch PHP Conference 2025 - Call For Papers

QuickHashStringIntHash::getSize

(No version information available, might only be in Git)

QuickHashStringIntHash::getSizeReturns the number of elements in the hash

Опис

public QuickHashStringIntHash::getSize(): int

Returns the number of elements in the hash.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

The number of elements in the hash.

Приклади

Приклад #1 QuickHashStringIntHash::getSize() example

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

Поданий вище приклад виведе щось схоже на:

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

add a note

User Contributed Notes

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