AppendIterator
AppendIterator::__construct
AppendIterator
PHP Manual

# AppendIterator::append

(PHP 5 >= 5.1.0)

AppendIterator::append — Appends an iterator

### Descrição

public void AppendIterator::append ( Iterator `$iterator` )

Appends an iterator.

### Parâmetros

`iterator`

  The iterator to append.

### Valor Retornado

Não há valor retornado.

### Exemplos

Exemplo #1 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;
}
?>`

O exemplo acima irá imprimir:

    abcdef

### Veja Também

- AppendIterator::__construct() - Constructs an AppendIterator

AppendIterator
AppendIterator::__construct
AppendIterator
PHP Manual