The Stack class Stack
&reftitle.intro; 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.
&reftitle.classsynopsis; Ds\Stack Ds\Stack Ds\Collection ArrayAccess &Methods;
&reftitle.changelog; &Version; &Description; PECL ds 1.3.0 The class now implements ArrayAccess.
&reference.ds.ds.entities.stack;