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
 
<SplPriorityQueue::topSplFixedArray>
^SplPriorityQueueLast updated: Mon, 26 Oct 2026

SplPriorityQueue::valid

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

SplPriorityQueue::valid — Check whether the queue contains more nodes

Description

public function SplPriorityQueue::valid(): bool

Checks if the queue contains any more nodes.

Parameters

This function has no parameters.

Return Values

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


<SplPriorityQueue::topSplFixedArray>
^SplPriorityQueueLast updated: Mon, 26 Oct 2026