(PHP 5, PHP 7, PHP 8)
Can be used to iterate through recursive iterators.
$iterator
, int $mode
= RecursiveIteratorIterator::LEAVES_ONLY, int $flags
= 0)RecursiveIteratorIterator::LEAVES_ONLY
RecursiveIteratorIterator::SELF_FIRST
RecursiveIteratorIterator::CHILD_FIRST
RecursiveIteratorIterator::CATCH_GET_CHILD