La clase RecursiveIteratorIterator

(PHP 5, PHP 7, PHP 8)

Introducción

Se puede usar para recorrer iteradores recursivos.

Sinopsis de la Clase

class RecursiveIteratorIterator implements OuterIterator {
/* Constantes */
const integer LEAVES_ONLY = 0;
const integer SELF_FIRST = 1;
const integer CHILD_FIRST = 2;
/* Métodos */
public beginChildren(): void
public __construct(Traversable $iterator, int $mode = RecursiveIteratorIterator::LEAVES_ONLY, int $flags = 0)
public current(): mixed
public endChildren(): void
public endIteration(): void
public getDepth(): int
public getMaxDepth(): mixed
public key(): mixed
public next(): void
public nextElement(): void
public rewind(): void
public setMaxDepth(int $max_depth = -1): void
public valid(): bool
/* Métodos heredados */
}

Tabla de contenidos