- reset: documentation ( source)
- asort: documentation ( source)
- each: documentation ( source)
<?php
$frutta = array("d"=>"limone", "a"=>"arancia", "b"=>"banana", "c"=>"mela");
asort($frutta);
reset($frutta);
while (list($chiave, $valore) = each($frutta)) {
echo "$chiave = $valore\n";
}
?>