PHP - Arrays
Identify the error in this PHP code snippet:
$arr = [3 => 'x', 1 => 'y', 2 => 'z']; arsort($arr, SORT_NUMERIC); print_r($arr);
$arr = [3 => 'x', 1 => 'y', 2 => 'z']; arsort($arr, SORT_NUMERIC); print_r($arr);
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions