Q. What will be the output?
Code:
echo '5' + 10;
β
Correct Answer: (A)
15
Explanation: PHP converts string '5' to integer 5 before addition.
echo '5' + 10;
Explanation: PHP converts string '5' to integer 5 before addition.