The AppendIterator class

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

Introduction

An Iterator that iterates over several iterators one after the other.

Class synopsis

class AppendIterator extends IteratorIterator {
/* Methods */
public __construct()
public append(Iterator $iterator): void
public current(): mixed
public getIteratorIndex(): ?int
public key(): scalar
public next(): void
public rewind(): void
public valid(): bool
/* Inherited methods */
public IteratorIterator::next(): void
}

Table of Contents