sort points form hight to lowest php code example
Example 1: array sort php
<?php
$fruits = array("lemon", "orange", "banana", "apple");
sort($fruits);
foreach ($fruits as $key => $val) {
echo $val;
}
/*
OUTPUT:
apple
banana
lemon
orange
*/
?>
Example 2: php sort hight to low
$letters=array("b","a","c");
arsort($letters); //referse sort an array ("c","a","b")