$nums = array(15, 2.2, -4, 2.3, 0); asort($nums); printf("%s\n", var_export($nums, TRUE)); ksort($nums); printf("%s\n", var_export($nums, TRUE)); ?>
%s