PHP/Data Structure/rsort
Версия от 10:37, 26 мая 2010; (обсуждение)
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);
?>