Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Ds\Stack::allocateDs\Stack::clear>
^Ds\StackLast updated: Mon, 26 Oct 2026

Ds\Stack::capacity

(PECL ds >= 1.0.0)

Ds\Stack::capacity — Returns the current capacity

Description

public function Ds\Stack::capacity(): int

Returns the current capacity.

Parameters

This function has no parameters.

Return Values

The current capacity.


<Ds\Stack::allocateDs\Stack::clear>
^Ds\StackLast updated: Mon, 26 Oct 2026