(no version information, might be only in CVS)
ArrayIterator::current() retourne l'entrée courante du tableau.
Exemple 1. Exemple avec ArrayIterator::current()
<?php$array = array('1' => 'un', '2' => 'deux', '3' => 'trois');$arrayobject = new ArrayObject($array);for($iterator = $arrayobject->getIterator(); $iterator->valid(); $iterator->next()) { echo $iterator->key() . ' => ' . $iterator->current() . "\n";}?>
L'exemple ci-dessus va afficher :
1 => un 2 => deux 3 => trois