PHP - Manual: Ds\Stack
2025-02-27
(PECL ds >= 1.0.0)
A Stack is a “last in, first out” or “LIFO” collection that only allows access to the value at the top of the structure and iterates in that order, destructively.
Uses a Ds\Vector internally.
$capacity
...$values
官方地址:https://www.php.net/manual/en/class.ds-stack.php