SplDoublyLinkedList::unshift

(PHP 5 >= 5.3.0, PHP 7) Prepends the doubly linked list with an element public void SplDoublyLinkedList::unshift ( mixed $value ) Prepends value at the beginning of the doubly linked list. Parameters: value The value to unshift. Returns: No value is returned.

SplStack::__construct

(PHP 5 >= 5.3.0, PHP 7) Constructs a new stack implemented using a doubly linked list SplStack::__construct ( void ) This constructs a new empty stack. Note: This method automatically sets the iterator mode to SplDoublyLinkedList::IT_MODE_LIFO. Returns: No value is returned. Examples: SplStack::__construct() example <?php $q = 

SplQueue::__construct

(PHP 5 >= 5.3.0, PHP 7) Constructs a new queue implemented using a doubly linked list SplQueue::__construct ( void ) This constructs a new empty queue. Note: This method automatically sets the iterator mode to SplDoublyLinkedList::IT_MODE_FIFO. Returns: No value is returned. Examples: SplQueue::__construct() example <?php $q = 

SplDoublyLinkedList::unserialize

(PHP 5 >= 5.4.0, PHP 7) Unserializes the storage public void SplDoublyLinkedList::unserialize ( string $serialized ) Unserializes the storage, from SplDoublyLinkedList::serialize(). Parameters: serialized The serialized string. Returns: No value is returned. This function is currently not documented; only

SplQueue::dequeue

(PHP 5 >= 5.3.0, PHP 7) Dequeues a node from the queue mixed SplQueue::dequeue ( void ) Dequeues value from the top of the queue. Note: SplQueue::dequeue() is an alias of SplDoublyLinkedList::shift(). Returns: The value of the dequeued node.

SplDoublyLinkedList::valid

(PHP 5 >= 5.3.0, PHP 7) Check whether the doubly linked list contains more nodes public bool SplDoublyLinkedList::valid ( void ) Checks if the doubly linked list contains any more nodes. Returns: Returns TRUE if the doubly linked list contains any more nodes, FALSE otherwise.

SplDoublyLinkedList::shift

(PHP 5 >= 5.3.0, PHP 7) Shifts a node from the beginning of the doubly linked list public mixed SplDoublyLinkedList::shift ( void ) Returns: The value of the shifted node. Exception: Throws RuntimeException when the data-structure is empty.

SplDoublyLinkedList::setIteratorMode

(PHP 5 >= 5.3.0, PHP 7) Sets the mode of iteration public void SplDoublyLinkedList::setIteratorMode ( int $mode ) Parameters: mode There are two orthogonal sets of modes that can be set: The direction of the iteration (either one or the other): SplDoublyLinkedList::IT_MODE_LIFO (Stack style) SplDoublyLinkedList::IT_MODE_FIFO (Queue style) The behavior of the iterato

SplDoublyLinkedList::prev

(PHP 5 >= 5.3.0, PHP 7) Move to previous entry public void SplDoublyLinkedList::prev ( void ) Move the iterator to the previous node. Returns: No value is returned.

SplDoublyLinkedList::pop

(PHP 5 >= 5.3.0, PHP 7) Pops a node from the end of the doubly linked list public mixed SplDoublyLinkedList::pop ( void ) Returns: The value of the popped node. Exception: Throws RuntimeException when the data-structure is empty.