SplPriorityQueue
PHP 手册

SplPriorityQueue::top

(PHP 5 >= 5.3.0)

SplPriorityQueue::topPeaks at the node from the top of the queue

说明

mixed SplPriorityQueue::top ( void )

参数

This function has no parameters.

返回值

The value or priority (or both) of the top node, depending on the extract flag.


SplPriorityQueue
PHP 手册