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