php8.5
Home/ Manual/ spl / splheap/ SplHeap::valid

SplHeap::valid

PHP function Edit on GitHub ✎

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

Check whether the heap contains more nodes

Description

SplHeap::valid(): bool

Checks if the heap contains any more nodes.

Parameters Parameters

Return Values

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

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