SplPriorityQueue
PHP 手册

SplPriorityQueue::valid

(PHP 5 >= 5.3.0)

SplPriorityQueue::validCheck whether the queue contains more nodes

说明

bool SplPriorityQueue::valid ( void )

Checks if the queue contains any more nodes.

参数

This function has no parameters.

返回值

Returns TRUE if the queue contains any more nodes, FALSE otherwise.


SplPriorityQueue
PHP 手册