PHP/Data Structure/rsort — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
Admin (обсуждение | вклад) м (1 версия) |
(нет различий)
|
Текущая версия на 10:02, 26 мая 2010
rsort() function sorts the elements in reverse order.
<source lang="html4strict">
Its syntax is: void rsort (array array) <?
$cities = array ("A", "N", "R", "V", "A"); rsort($cities); print_r($cities);
?>
</source>
rsort.php
<source lang="html4strict">
<?php $states = array("Ohio","Florida","Massachusetts","Montana"); sort($states); print_r($states); ?>
</source>