PHP Manual
Function Reference
Other Basic Extensions
SPL
Iterators
AppendIterator
ArrayIterator
CachingIterator
CallbackFilterIterator
DirectoryIterator
EmptyIterator
FilesystemIterator
FilterIterator
GlobIterator
InfiniteIterator
IteratorIterator
LimitIterator
MultipleIterator
NoRewindIterator
ParentIterator
RecursiveArrayIterator
RecursiveCachingIterator
RecursiveCallbackFilterIterator
RecursiveDirectoryIterator
RecursiveFilterIterator
RecursiveIteratorIterator
RecursiveRegexIterator
RecursiveTreeIterator
RegexIterator
DirectoryIterator::valid
EmptyIterator::current
Iterators
PHP Manual
The EmptyIterator class
Introduction
The EmptyIterator class for an empty iterator.
Class synopsis
EmptyIterator
implements
Iterator
/* Methods */
public
never
current
()
public
never
key
()
public
void
next
()
public
void
rewind
()
public
false
valid
()
Table of Contents
EmptyIterator::current
— The current() method
EmptyIterator::key
— The key() method
EmptyIterator::next
— The next() method
EmptyIterator::rewind
— The rewind() method
EmptyIterator::valid
— Checks whether the current element is valid