(PHP 5 >= 5.1.3, PHP 7)
Construct a RecursiveIteratorIterator
public RecursiveIteratorIterator::__construct ( Traversable $iterator [, int $mode = RecursiveIteratorIterator::LEAVES_ONLY [, int $flags = 0 ]] )
Creates a RecursiveIteratorIterator from a RecursiveIterator.
Parameters:
iterator
The iterator being constructed from. Either a RecursiveIterator or IteratorAg