array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'class.spldoublylinkedlist.php', 1 => 'SplDoublyLinkedList', ), 'up' => array ( 0 => 'spl.datastructures.php', 1 => 'Datenstrukturen', ), 'prev' => array ( 0 => 'spl.datastructures.php', 1 => 'Datenstrukturen', ), 'next' => array ( 0 => 'spldoublylinkedlist.add.php', 1 => 'SplDoublyLinkedList::add', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/spl/spldoublylinkedlist.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.spldoublylinkedlist.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
The SplDoublyLinkedList class provides the main functionalities of a doubly linked list.
SplDoublyLinkedList::IT_MODE_LIFO
The list will be iterated in a last in, first out order, like a stack.
SplDoublyLinkedList::IT_MODE_FIFO
The list will be iterated in a first in, first out order, like a queue.
SplDoublyLinkedList::IT_MODE_DELETE
Iteration will remove the iterated elements.
SplDoublyLinkedList::IT_MODE_KEEP
Iteration will not remove the iterated elements.