The RecursiveIterator interface

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

简介

Classes implementing RecursiveIterator can be used to iterate over iterators recursively.

接口摘要

implements RecursiveIterator extends Iterator {
/* 方法 */
public getChildren ( ) : RecursiveIterator|null
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

User Contributed Notes

There are no user contributed notes for this page.
PHP8中文手册 站长在线 整理 版权归PHP文档组所有