rsort() function sorts the elements in reverse order. : rsort « Data Structure « PHP






rsort() function sorts the elements in reverse order.

 
Its syntax is: void rsort (array array)

<?
    $cities = array ("A", "N", "R", "V", "A");
    rsort($cities);
    print_r($cities);
?>
  
  








Related examples in the same category

1.rsort.php