Question and answer is powered by AnsPress.io
An array data make short in php. How can I short array result in php programming language?
Short an array in php use sort($array). for example
$date = array(10, 7, 17, 02, 31); sort($date);
Or try this code in your local server.
<?php $date = array(10, 7, 17, 02, 31); sort($date); $arrlength = count($date); for($i = 0; $i < $arrlength; $i++) { echo $date[$i]; echo "<br>"; } ?>