(PHP 5 >= 5.3.0, PHP 7, PHP 8)
SplDoublyLinkedList::shift — Shifts a node from the beginning of the doubly linked list
This function has no parameters.
The value of the shifted node.
Throws RuntimeException when the data-structure is empty.