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

search for in the

ArrayIterator::current> <spl_object_hash
Last updated: Fri, 05 Sep 2008

view this page in

La classe ArrayIterator

Introduction

Cet itérateur permet de réinitialiser et de modifier les valeurs et les clés lors de l'itération de tableaux et d'objets.

Lorsque vous voulez itérer le même tableau plusieurs fois, vous devez instancier ArrayObject et le laisser créer les instances ArrayIterator qui s'y réfère, soit en utilisant l'instruction foreach, soit en appelant la méthode getIterator() manuellement.

Synopsis de la classe

ArrayIterator
ArrayIterator implements Iterator , Traversable , ArrayAccess , SeekableIterator , Countable {
/* Méthodes */
mixed ArrayIterator::current ( void )
mixed ArrayIterator::key ( void )
void ArrayIterator::next ( void )
void ArrayIterator::rewind ( void )
void ArrayIterator::seek ( int $position )
bool ArrayIterator::valid ( void )
}

Sommaire



add a note add a note User Contributed Notes
ArrayIterator
There are no user contributed notes for this page.

ArrayIterator::current> <spl_object_hash
Last updated: Fri, 05 Sep 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites