Php/docs/class.recursiveiterator
来自菜鸟教程
(PHP 5 >= 5.1.0, PHP 7)
简介
Classes implementing RecursiveIterator can be used to iterate over iterators recursively.
接口摘要
RecursiveIterator extends Iterator {
public getChildren ( ) : RecursiveIterator
public hasChildren ( ) : bool
/* 继承的方法 */
abstract public Iterator::current ( ) : mixed
abstract public Iterator::key ( ) : scalar
abstract public Iterator::next ( ) : void
abstract public Iterator::rewind ( ) : void
abstract public Iterator::valid ( ) : bool
}
Table of Contents
- RecursiveIterator::getChildren — Returns an iterator for the current entry
- RecursiveIterator::hasChildren — Returns if an iterator can be created for the current entry
/* 方法 */