Home
My Account
About us
Products
Support Services
Buy online
Downloads
Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
PHP Manual
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
Last updated: Mon, 26 Oct 2026
The EmptyIterator class
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
Introduction
The EmptyIterator class for an empty iterator.
Class synopsis
class
EmptyIterator
implements
Iterator
{
/* Methods */
public
function
current
():
never
public
function
key
():
never
public
function
next
():
void
public
function
rewind
():
void
public
function
valid
():
false
}
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
DirectoryIterator::valid
EmptyIterator::current
Iterators
Last updated: Mon, 26 Oct 2026