SplDoublyLinkedList
PHP Manual

SplDoublyLinkedList::top

(PHP 5 >= 5.3.0, PHP 7)

SplDoublyLinkedList::topPeeks at the node from the end of the doubly linked list

설명

public mixed SplDoublyLinkedList::top ( void )

인수

이 함수는 인수가 없습니다.

반환값

The value of the last node.

오류/예외

Throws RuntimeException when the data-structure is empty.


SplDoublyLinkedList
PHP Manual