Sort Array of Numbers in Ascending Order using PHP

sort function

<?php

$numbers = [10, 3, 17, 50, 15];
sort($numbers);

print_r($numbers);

Leave a Comment

Cancel reply

Your email address will not be published.