SplDoublyLinkedList::unshift
PHP function
Edit on GitHub ✎
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
Prepends the doubly linked list with an element
Description
SplDoublyLinkedList::unshift(mixed $value): void
Prepends value at the beginning of the doubly linked list.
Parameters
valueThe value to unshift.
Return Values
Void