php8.5
Home/ Manual/ spl / splpriorityqueue/ SplPriorityQueue::valid

SplPriorityQueue::valid

PHP function Edit on GitHub ✎

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

Check whether the queue contains more nodes

Description

SplPriorityQueue::valid(): bool

Checks if the queue contains any more nodes.

Parameters Parameters

Return Values

Returns true if the queue contains any more nodes, false otherwise.

Source: reference/spl/splpriorityqueue/valid.xml · from the official PHP manual (php/doc-en)