Итераторы
PHP Manual

The RecursiveIteratorIterator class

Введение

Can be used to iterate through recursive iterators.

Обзор классов

RecursiveIteratorIterator implements OuterIterator , Traversable , Iterator {
/* Методы */
public void beginChildren ( void )
public void beginIteration ( void )
public RecursiveIterator callGetChildren ( void )
public bool callHasChildren ( void )
__construct ( Traversable $iterator [, int $mode = LEAVES_ONLY [, int $flags = 0 ]] )
mixed current ( void )
public void endChildren ( void )
public void endIteration ( void )
int getDepth ( void )
public iterator getInnerIterator ( void )
public mixed getMaxDepth ( void )
RecursiveIterator getSubIterator ( void )
mixed key ( void )
void next ( void )
public void nextElement ( void )
void rewind ( void )
public void setMaxDepth ([ string $max_depth = -1 ] )
bool valid ( void )
/* Наследуемые методы */
public Iterator OuterIterator::getInnerIterator ( void )
}

Содержание


Итераторы
PHP Manual