RecursiveCachingIterator::hasChildren
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
RecursiveCachingIterator::hasChildren — Check whether the current element of the inner iterator has children
Description
Checks whether the current element has children. The inner iterator is asked when the iterator moves to the element, so this method returns the result that was stored at that time.
Parameters
This function has no parameters.
See Also
- RecursiveCachingIterator::getChildren() - Return the inner iterator's children as a RecursiveCachingIterator
- RecursiveIterator::hasChildren() - Returns if an iterator can be created for the current entry
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
