# The IntlIterator class

(PHP 5 >= 5.5.0, PHP 7)

## Introduction

This class represents iterator objects throughout the intl extension whenever the iterator cannot be identified with any other object provided by the extension. The distinct iterator object used internally by the foreach construct can only be obtained (in the relevant part here) from objects, so objects of this class serve the purpose of providing the hook through which this internal object can be obtained. As a convenience, this class also implements the Iterator interface, allowing the collection of values to be navigated using the methods defined in that interface. Both these methods and the internal iterator objects provided to foreach are backed by the same state (e.g. the position of the iterator and its current value).

Subclasses may provide richer functionality.

## Synopsis de la classe

IntlIterator implements Iterator {
/* Méthodes */
public current ( void ) : mixed
public key ( void ) : string
public next ( void ) : void
public rewind ( void ) : void
public valid ( void ) : bool
}

## Sommaire

- IntlIterator::current — Récupère l'élément courant
- IntlIterator::key — Récupère la clé courante
- IntlIterator::next — Se déplace sur l'élément suivant
- IntlIterator::rewind — Re-positionne l'itérateur au premier élément
- IntlIterator::valid — Vérifie si la position courant est valide