(PHP 5, PHP 7, PHP 8)
Can be used to iterate through recursive iterators.
Calls to methods that RecursiveIteratorIterator does not have are forwarded to the iterator at the current depth, as returned by RecursiveIteratorIterator::getSubIterator(). This does not use __call().
$iterator
$mode
RecursiveIteratorIterator::LEAVES_ONLY
$flags
$level
null
$maxDepth
RecursiveIteratorIterator::SELF_FIRST
RecursiveIteratorIterator::CHILD_FIRST
RecursiveIteratorIterator::CATCH_GET_CHILD