SPL provides a set of iterators to traverse over objects.
SPL Iterators Class Tree
-
ArrayIterator
-
EmptyIterator
-
IteratorIterator
-
AppendIterator
-
CachingIterator
-
FilterIterator
-
CallbackFilterIterator
-
RecursiveCallbackFilterIterator
-
RecursiveFilterIterator
-
RegexIterator
-
InfiniteIterator
-
LimitIterator
-
NoRewindIterator
-
MultipleIterator
-
RecursiveIteratorIterator
-
DirectoryIterator (extends SplFileInfo)
-
FilesystemIterator
-
GlobIterator
-
RecursiveDirectoryIterator