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 = 

SplStack::setIteratorMode

(PHP 5 >= 5.3.0, PHP 7) Sets the mode of iteration void SplStack::setIteratorMode ( int $mode ) Parameters: mode There is only one iteration parameter you can modify. The behavior of the iterator (either one or the other): SplDoublyLinkedList::IT_MODE_DELETE (Elements are deleted by the iterator) SplDoublyLinkedList::IT_MODE_KEEP (Elements are traversed by the iterato

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 = 

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::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.

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

SplDoublyLinkedList::top

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

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::serialize

(PHP 5 >= 5.4.0, PHP 7) Serializes the storage public string SplDoublyLinkedList::serialize ( void ) Serializes the storage. Returns: The serialized string. This function is currently not documented; only its argument list is available. See also: SplDoublyLinkedList