PHP/Data Structure/rsort
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);
?>
rsort.php
<?php
$states = array("Ohio","Florida","Massachusetts","Montana");
sort($states);
print_r($states);
?>