EmptyIterator class

EmptyIterator

EmptyIterator is a class provided by PHP that is an implementation of the Null Object pattern for Iterators. It is used in the example code below. EmptyIterator::valid() always returns false.