AppendIterator::append

Appends an iterator

&reftitle.description; public `void` `AppendIterator::append` `Iterator` `iterator`

Appends an iterator.

&reftitle.parameters;

`iterator`

- The iterator to append.

&reftitle.returnvalues;

&return.void;

&reftitle.examples;

### `AppendIterator::append` example

    <?php
    $array_a = new ArrayIterator(array('a', 'b', 'c'));
    $array_b = new ArrayIterator(array('d', 'e', 'f'));

    $iterator = new AppendIterator;
    $iterator->append($array_a);
    $iterator->append($array_b);

    foreach ($iterator as $current) {
        echo $current;
    }
    ?>

&example.outputs;

    abcdef

&reftitle.seealso;

- `AppendIterator::__construct`