Q. What will be the output?
Code:
echo '1' + true;
β
Correct Answer: (A)
2
Explanation: true is converted to 1 → 1 + 1 = 2.
echo '1' + true;
Explanation: true is converted to 1 → 1 + 1 = 2.