sort array in ascending order in php

technical talkiess
0

sort array in ascending order in php 

<!DOCTYPE html>

<html>

<body>


<?php

$test_array = [12,2,1,5,6,8,13,28,7];

 sort($test_array);

 var_dump($test_array);


?> 


</body>

</html>


Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)