+ 2
sort is in ascending order <?php $arr = array(12,14,76,1,42,7,24,33,13,52); for($i = 0; $i < count($arr); ++$i) { print $arr[$i].' '; } print '<br>'; sort($arr); for($i = 0; $i < count($arr); ++$i) { print $arr[$i].' '; } ?> https://www.w3schools.com/PhP/php_arrays_sort.asp
3rd Oct 2017, 10:24 PM
ChaoticDawg
ChaoticDawg - avatar