(PHP 5 >= 5.3.0, PHP 7)
Peeks at the node from the end of the doubly linked list
public mixed SplDoublyLinkedList::top ( void )
Returns:
The value of the last node.
Exception:
Throws RuntimeException when the data-structure is empty.
Please login to continue.