array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'ds-map.capacity.php', 1 => 'Ds\\Map::capacity', 2 => 'Returns the current capacity', ), 'up' => array ( 0 => 'class.ds-map.php', 1 => 'Ds\\Map', ), 'prev' => array ( 0 => 'ds-map.apply.php', 1 => 'Ds\\Map::apply', ), 'next' => array ( 0 => 'ds-map.clear.php', 1 => 'Ds\\Map::clear', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ds/ds/map/capacity.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PECL ds >= 1.0.0)
Ds\Map::capacity — Returns the current capacity
У цієї функції немає параметрів.
The current capacity.
Приклад #1 Ds\Map::capacity() example
<?php
$map = new \Ds\Map();
var_dump($map->capacity());
?>
Поданий вище приклад виведе щось схоже на:
int(16)