RecursiveTreeIterator::__construct
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
Construct a RecursiveTreeIterator
Description
Constructs a new RecursiveTreeIterator from the supplied recursive iterator.
Func
Parameters
iteratorThe
RecursiveIteratororIteratorAggregateto iterate over.flagsFlags may be provided which will affect the behavior of some methods. A list of the flags can found under RecursiveTreeIterator predefined constants.
caching_it_flagsFlags to affect the behavior of the
RecursiveCachingIteratorused internally.modeFlags to affect the behavior of the
RecursiveIteratorIteratorused internally.