downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

AppendIterator::__construct> <AppendIterator
[edit] Last updated: Fri, 17 May 2013

view this page in

AppendIterator::append

(PHP 5 >= 5.1.0)

AppendIterator::appendAjoute un itérateur à la fin

Description

public void AppendIterator::append ( Iterator $iterator )

Ajoute un itérateur à la fin.

Liste de paramètres

iterator

L'itérateur à ajouter.

Valeurs de retour

Aucune valeur n'est retournée.

Exemples

Exemple #1 Exemple avec AppendIterator::append()

<?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;
}
?>

L'exemple ci-dessus va afficher :

abcdef

Voir aussi



add a note add a note User Contributed Notes AppendIterator::append - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites