Classes implementing RecursiveIterator can be used to iterate over iterators recursively.

See also:

Methods