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