Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<SplHeap::topSplMaxHeap>
^SplHeapLast updated: Mon, 26 Oct 2026

SplHeap::valid

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

SplHeap::valid — Check whether the heap contains more nodes

Description

public function SplHeap::valid(): bool

Checks if the heap contains any more nodes.

Parameters

This function has no parameters.

Return Values

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


<SplHeap::topSplMaxHeap>
^SplHeapLast updated: Mon, 26 Oct 2026