rsort.php : rsort « Data Structure « PHP






rsort.php

 
<?php

$states = array("Ohio","Florida","Massachusetts","Montana");
sort($states);
print_r($states);

?>
  
  








Related examples in the same category

1.rsort() function sorts the elements in reverse order.