After using asort()to return the array's elements to their original order
<?php
$nums = array(15, 2.2, -4, 2.3, 0);
asort($nums);
printf("<pre>%s</pre>\n", var_export($nums, TRUE));
ksort($nums);
printf("<pre>%s</pre>\n", var_export($nums, TRUE));
?>
Related examples in the same category