php8.5
Home/ Manual/ spl / recursivedirectoryiterator/ RecursiveDirectoryIterator::hasChildren

RecursiveDirectoryIterator::hasChildren

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Returns whether current entry is a directory and not '.' or '..'

Description

RecursiveDirectoryIterator::hasChildren(bool $allowLinks = false): bool

Func

Parameters

allowLinks

Return Values

Returns whether the current entry is a directory, but not '.' or '..'

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