(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, int $mode = RecursiveIteratorIterator::LEAVES_ONLY, int $flags = 0)| Version | Description |
|---|---|
| 8.4.0 | The class constants are now typed. |