Code:
<!DOCTYPE html><html>
<body>
<center>
<h1>ARRAY SORTING</h1>
<?php
$num = array(99, 37, 26, 62, 6, 50, 44);
print_r($num);
echo "<br/>";
sort($num);
$arrlength = count($num);
for($i = 0; $i < $arrlength; $i++)
{
echo "<br/>";
echo $num[$i];
}
?>
</center>
</body>
</html>
No comments:
Post a Comment