Ds\Map::capacity

(PECL ds >= 1.0.0)

Ds\Map::capacityReturns the current capacity

Description

public Ds\Map::capacity ( void ) : int

Returns the current capacity.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

The current capacity.

Exemples

Exemple #1 Ds\Map::capacity() example

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

L'exemple ci-dessus va afficher quelque chose de similaire à :

int(16)