(PHP 5 >= 5.3.0)
The SplStack class provides the main functionalities of a stack implemented using a doubly linked list.
$mode
$index
$newval
$value
$serialized