RecursiveCachingIterator::__construct
PHP function
Edit on GitHub ✎
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
Construct
Description
RecursiveCachingIterator::__construct(Iterator $iterator, int $flags = RecursiveCachingIterator::CALL_TOSTRING)
Constructs a new RecursiveCachingIterator, which consists of a passed in iterator.
Func
Parameters
iteratorThe iterator being used.
flagsThe flags. Use
CALL_TOSTRINGto callRecursiveCachingIterator::__toStringfor every element (the default), and/orCATCH_GET_CHILDto catch exceptions when trying to get children.
See Also
CachingIterator::__construct