$dogs = array('A' => 'AA', 'Bud' => 'BB',
'C' => 'D');
ksort($dogs);
printf("%s
\n", var_export($dogs, TRUE));
krsort($dogs);
printf("%s
\n", var_export($dogs, TRUE));
$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));
?>