W3cubDocs

/PHP

The InternalIterator class

Introduction

(PHP 8)

Class to ease implementing IteratorAggregate for internal classes.

Class synopsis

final class InternalIterator implements Iterator {
/* Methods */
private __construct()
public current(): mixed
public key(): mixed
public next(): void
public rewind(): void
public valid(): bool
}

Table of Contents

© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.internaliterator.php