programming-examples/php/Arrays/PHP script to sort an array in reverse order (highest to lowest)..php
2019-11-15 12:59:38 +01:00

5 lines
98 B
PHP

<?php
$colors = array("Red", "Orange", "Black", "White");
rsort($colors);
print_r($colors);
?>