The RecursiveCachingIterator class
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
Introduction
This object supports cached iteration over a RecursiveIterator. The children of each element are also iterated over by a RecursiveCachingIterator, created with the same flags.
Class synopsis
/* Inherited constants */
/* Methods */
public function __construct(Iterator
$iterator, int $flags = RecursiveCachingIterator::CALL_TOSTRING)/* Inherited methods */
}Table of Contents
- RecursiveCachingIterator::__construct — Construct
- RecursiveCachingIterator::getChildren — Return the inner iterator's children as a RecursiveCachingIterator
- RecursiveCachingIterator::hasChildren — Check whether the current element of the inner iterator has children
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
