array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'quickhashstringinthash.getsize.php', 1 => 'QuickHashStringIntHash::getSize', 2 => 'Returns the number of elements in the hash', ), 'up' => array ( 0 => 'class.quickhashstringinthash.php', 1 => 'QuickHashStringIntHash', ), 'prev' => array ( 0 => 'quickhashstringinthash.get.php', 1 => 'QuickHashStringIntHash::get', ), 'next' => array ( 0 => 'quickhashstringinthash.loadfromfile.php', 1 => 'QuickHashStringIntHash::loadFromFile', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/quickhash/quickhashstringinthash/getsize.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

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)