Reversing an Array Using arsort()
<?php $dogs = array('A' => 'C', 'B' => 'D', 'X' => 'Z', 'Q' => 'T'); arsort($dogs); printf("<pre>%s</pre>\n", var_export($dogs, TRUE)); ?>