php8.5
Home/ Manual/ spl / recursiveiterator/ RecursiveIterator::hasChildren

RecursiveIterator::hasChildren

PHP function Edit on GitHub ✎

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

Returns if an iterator can be created for the current entry

Description

RecursiveIterator::hasChildren(): bool

Returns if an iterator can be created for the current entry. RecursiveIterator::getChildren.

Parameters Parameters

Return Values

Returns true if the current entry can be iterated over, otherwise returns false.

See Also

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