Reversing an Array Using krsort() : krsort « Data Structure « PHP






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));
?>
  
  








Related examples in the same category

1.Sorting with ksort()