(PHP 5 >= 5.1.0)
The InfiniteIterator allows one to infinitely iterate over an iterator without having to manually rewind the iterator upon reaching its end.
$iterator