array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'spldoublylinkedlist.shift.php', 1 => 'SplDoublyLinkedList::shift', 2 => 'Shifts a node from the beginning of the doubly linked list', ), 'up' => array ( 0 => 'class.spldoublylinkedlist.php', 1 => 'SplDoublyLinkedList', ), 'prev' => array ( 0 => 'spldoublylinkedlist.setiteratormode.php', 1 => 'SplDoublyLinkedList::setIteratorMode', ), 'next' => array ( 0 => 'spldoublylinkedlist.top.php', 1 => 'SplDoublyLinkedList::top', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/spl/spldoublylinkedlist/shift.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SplDoublyLinkedList::shift

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

SplDoublyLinkedList::shiftShifts a node from the beginning of the doubly linked list

Beschreibung

public SplDoublyLinkedList::shift(): mixed

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

The value of the shifted node.

Fehler/Exceptions

Throws RuntimeException when the data-structure is empty.