PHP - Array Functions
What will be the output of the following PHP code?
$numbers = [3, 1, 4, 1, 5]; sort($numbers); print_r($numbers);
$numbers = [3, 1, 4, 1, 5]; sort($numbers); print_r($numbers);
sort() function sorts the array in ascending order, changing the original array.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions