Reversing an Array Using krsort()
<?php $dogs = array('A' => 'AA', 'Bud' => 'BB','C' => 'D'); ksort($dogs); printf("<pre>%s</pre>\n", var_export($dogs, TRUE)); ?>