PHP - Arrays
What will be the output of the following PHP code?
$arr = [1, 2, 3];
$arr[1] = 10;
echo $arr[1];
$arr = [1, 2, 3];
$arr[1] = 10;
echo $arr[1];
$arr[1] is 10, so echo outputs 10.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions