programming-examples/php/Arrays/PHP script to sort an array in reverse order (highest to lowest)..php

5 lines
98 B
PHP
Raw Normal View History

2019-11-15 12:59:38 +01:00
<?php
$colors = array("Red", "Orange", "Black", "White");
rsort($colors);
print_r($colors);
?>