RecursiveIteratorIterator クラス

(PHP 5, PHP 7, PHP 8)

はじめに

再帰的なイテレータの反復処理に使用します。

クラス概要

RecursiveIteratorIteratorimplements OuterIterator {
constintLEAVES_ONLY = 0 ;
constintSELF_FIRST = 1 ;
constintCHILD_FIRST = 2 ;
constintCATCH_GET_CHILD = 16 ;
publicbeginChildren(): void
publicbeginIteration(): void
publiccallHasChildren(): bool
public__construct(Traversable$iterator, int$mode = RecursiveIteratorIterator::LEAVES_ONLY, int$flags = 0)
publiccurrent(): mixed
publicendChildren(): void
publicendIteration(): void
publicgetDepth(): int
publicgetSubIterator(int$level = ?): RecursiveIterator
publickey(): mixed
publicnext(): void
publicnextElement(): void
publicrewind(): void
publicsetMaxDepth(int$max_depth = -1): void
publicvalid(): bool
}

定義済み定数

RecursiveIteratorIterator::LEAVES_ONLY

RecursiveIteratorIterator::SELF_FIRST

RecursiveIteratorIterator::CHILD_FIRST

RecursiveIteratorIterator::CATCH_GET_CHILD

目次