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); ?>

Ds\Map::capacity

(PECL ds >= 1.0.0)

Ds\Map::capacityReturns the current capacity

Опис

public Ds\Map::capacity(): int

Returns the current capacity.

Параметри

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

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

The current capacity.

Приклади

Приклад #1 Ds\Map::capacity() example

<?php
$map
= new \Ds\Map();
var_dump($map->capacity());
?>

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

int(16)