RecursiveIterator::hasChildren

(PHP 5 >= 5.1.0, PHP 7)

RecursiveIterator::hasChildrenReturns if an iterator can be created for the current entry

说明

public RecursiveIterator::hasChildren ( void ) : bool

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

参数

此函数没有参数。

返回值

Returns TRUE if the current entry can be iterated over, otherwise returns FALSE.

参见

相关文章
php directoryiterator determine if current directoryiterator item can be readphp directoryiterator determine if current directoryiterator item can be written tophp pair returns a representation that can be converted to jsonphp mcve 函数 returns array of strings which represents the keys that can be used for response parameters on this transactionphp mongodb bson dbpointer returns a representation that can be converted to jsonphp mongogridfsfile returns a resource that can be used to read the stored filephp outeriterator returns the inner iterator for the current entryphp phar returns true if the phar archive can be modifiedphp phardata returns true if the tar/zip archive can be modifiedphp recursivearrayiterator returns an iterator for the current entry if it is an array or an objectphp recursivedirectoryiterator returns an iterator for the current entry if it is a directoryphp recursiveiterator returns an iterator for the current entryphp recursiveiterator returns if an iterator can be created for the current entryphp recursiveregexiterator returns an iterator for the current entryphp recursiveregexiterator returns whether an iterator can be obtained for the current entryphp splobjectstorage returns the data associated with the current iterator entryphp splobjectstorage returns if the current iterator entry is validphp swftext returns the ascent of the current font at its current size or 0 if not availablephp swftext returns the descent of the current font at its current size or 0 if not availablephp zookeeper checks if the current zookeeper connection state can be recovered
关注编程学问公众号