<?php
$a = array('123', '456A', '78'); sort($a); print_r($a);
$b = array('456A', '78', '123'); sort($b); print_r($b);
$c = array('78', '123', '456A'); sort($c); print_r($c);
$d = array('78', '456A', '123'); sort($d); print_r($d);
while (list($chiave, $valore) = each($a)) {
echo "A[" . $chiave . "] = " . $valore . "\n";
}
while (list($chiave, $valore) = each($b)) { echo "B[" . $chiave . "] = " . $valore . "\n"; }
preferences:
38.5 ms | 402 KiB | 5 Q