The SplStack class
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
Introduction
The SplStack class provides the main functionalities of a stack implemented using a doubly linked list.
Class synopsis
Table of Contents
- SplStack::__construct — Constructs a new stack implemented using a doubly linked list
- SplStack::setIteratorMode — Sets the mode of iteration