array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'splheap.valid.php', 1 => 'SplHeap::valid', 2 => 'Check whether the heap contains more nodes', ), 'up' => array ( 0 => 'class.splheap.php', 1 => 'SplHeap', ), 'prev' => array ( 0 => 'splheap.top.php', 1 => 'SplHeap::top', ), 'next' => array ( 0 => 'class.splmaxheap.php', 1 => 'SplMaxHeap', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/spl/splheap/valid.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SplHeap::valid

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

SplHeap::validCheck whether the heap contains more nodes

Beschreibung

public SplHeap::valid(): bool

Checks if the heap contains any more nodes.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

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