RecursiveIterator

The RecursiveIterator interface is an interface that is able to iterate through nested iterators.

The RecursiveIterator is implemented by the RecursiveArrayIterator, and RecursiveDirectoryIterator.

Documentation

See also php: doing recursion with recursive iterator(iterator)s.

Related : Iterator, Standard PHP Library (SPL), RecursiveArrayIterator, RecursiveDirectoryIterator, DirectoryIterator, OuterIterator, PHP Native Interfaces, RecursiveTreeIterator