php organize array of integers in descending order code example
Example 1: php sort hight to low
$letters=array("b","a","c");
arsort($letters); //referse sort an array ("c","a","b")
Example 2: how to sort with array and after print by for loop in php
$cars = array("Volvo", "BMW", "Toyota");
sort($cars);
$clength = count($cars);
for($x = 0; $x < $clength; $x++) {
echo $cars[$x];
echo "<br>";
}