The SplDoublyLinkedList class
The SplDoublyLinkedList class provides the main functionalities of a doubly linked list.
Intro
The SplDoublyLinkedList class provides the main functionalities of a doubly linked list.
Class synopsis
Predefined Constants
Iteration Direction
SplDoublyLinkedList::IT_MODE_LIFOThe list will be iterated in a last in, first out order, like a stack.
SplDoublyLinkedList::IT_MODE_FIFOThe list will be iterated in a first in, first out order, like a queue.
Iteration Behavior
SplDoublyLinkedList::IT_MODE_DELETEIteration will remove the iterated elements.
SplDoublyLinkedList::IT_MODE_KEEPIteration will not remove the iterated elements.
Changelog
| Version | Description |
|---|
Spldoublylinkedlist