array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'spldoublylinkedlist.top.php', 1 => 'SplDoublyLinkedList::top', ), 'up' => array ( 0 => 'class.spldoublylinkedlist.php', 1 => 'SplDoublyLinkedList', ), 'prev' => array ( 0 => 'spldoublylinkedlist.shift.php', 1 => 'SplDoublyLinkedList::shift', ), 'next' => array ( 0 => 'spldoublylinkedlist.unserialize.php', 1 => 'SplDoublyLinkedList::unserialize', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/spl/spldoublylinkedlist/top.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
SplDoublyLinkedList::top — Peeks at the node from the end of the doubly linked list
This function has no parameters.
The value of the last node.
Throws RuntimeException when the data-structure is empty.