php / 8.1.5 / ds-stack.capacity.html /

Ds\Stack::capacity

(PECL ds >= 1.0.0)

Ds\Stack::capacityReturns the current capacity

Description

public Ds\Stack::capacity(): int

Returns the current capacity.

Parameters

This function has no parameters.

Return Values

The current capacity.

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/ds-stack.capacity.php