SplHeap::top

(PHP 5 >= 5.3.0, PHP 7)

SplHeap::topPeeks at the node from the top of the heap

说锟斤拷

public SplHeap::top ( void ) : mixed

锟斤拷锟斤拷

锟剿猴拷锟斤拷没锟叫诧拷锟斤拷锟斤拷

锟斤拷锟斤拷值

The value of the node on the top.

锟斤拷锟斤拷锟届常

Throws RuntimeException when the data-structure is empty.