# The AppendIterator class

(PHP 5 >= 5.1.0, PHP 7)

## Introduction

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

## Class synopsis

AppendIterator extends IteratorIterator implements OuterIterator {
/* Methods */
public __construct ( void )
public append ( Iterator `$iterator` ) : void
public current ( void ) : mixed
public getArrayIterator ( void ) : ArrayIterator
public getInnerIterator ( void ) : Iterator
public getIteratorIndex ( void ) : int
public key ( void ) : scalar
public next ( void ) : void
public rewind ( void ) : void
public valid ( void ) : bool
/* Inherited methods */
public IteratorIterator::__construct ( Traversable `$iterator` )
public IteratorIterator::current ( void ) : mixed
public IteratorIterator::getInnerIterator ( void ) : Traversable
public IteratorIterator::key ( void ) : mixed
public IteratorIterator::next ( void ) : void
public IteratorIterator::rewind ( void ) : void
public IteratorIterator::valid ( void ) : bool
}

## Table of Contents

- AppendIterator::append — Appends an iterator
- AppendIterator::__construct — Constructs an AppendIterator
- AppendIterator::current — Gets the current value
- AppendIterator::getArrayIterator — Gets the ArrayIterator
- AppendIterator::getInnerIterator — Gets the inner iterator
- AppendIterator::getIteratorIndex — Gets an index of iterators
- AppendIterator::key — Gets the current key
- AppendIterator::next — Moves to the next element
- AppendIterator::rewind — Rewinds the Iterator
- AppendIterator::valid — Checks validity of the current element