Q. What will be the output?
Code:
$x = '5'; $x += 3; echo gettype($x);
β
Correct Answer: (B)
integer
Explanation: String is converted to integer during arithmetic.