Q. What will be the output?
Code:
$x = 5; $x += 3; echo $x;
β
Correct Answer: (B)
8
Explanation: $x becomes 8 after addition assignment.
$x = 5; $x += 3; echo $x;
Explanation: $x becomes 8 after addition assignment.