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

QuickHashIntSet::getSize

(PECL quickhash >= Unknown)

QuickHashIntSet::getSizeReturns the number of elements in the set

Açıklama

publicQuickHashIntSet::getSize(): int

Returns the number of elements in the set.

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

The number of elements in the set.

Örnekler

Örnek 1 QuickHashIntSet::getSize() example

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

Yukarıdaki örnek şuna benzer bir çıktı üretir:

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