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
Predefined Interfaces and Classes
Traversable
Iterator
IteratorAggregate
InternalIterator
Throwable
Countable
ArrayAccess
Serializable
Closure
stdClass
Generator
Fiber
WeakReference
WeakMap
Stringable
UnitEnum
BackedEnum
SensitiveParameterValue
__PHP_Incomplete_Class
IteratorAggregate::getIterator
InternalIterator::__construct
Predefined Interfaces and Classes
Last updated: Mon, 26 Oct 2026
The InternalIterator class
(PHP 8)
Introduction
Class to ease implementing
IteratorAggregate
for
internal
classes.
Class synopsis
final
class
InternalIterator
implements
Iterator
{
/* Methods */
private
function
__construct
()
public
function
current
():
mixed
public
function
key
():
mixed
public
function
next
():
void
public
function
rewind
():
void
public
function
valid
():
bool
}
Table of Contents
InternalIterator::__construct
— Private constructor to disallow direct instantiation
InternalIterator::current
— Return the current element
InternalIterator::key
— Return the key of the current element
InternalIterator::next
— Move forward to next element
InternalIterator::rewind
— Rewind the Iterator to the first element
InternalIterator::valid
— Check if current position is valid
IteratorAggregate::getIterator
InternalIterator::__construct
Predefined Interfaces and Classes
Last updated: Mon, 26 Oct 2026