What is the output of the PHP statement echo “5” + “3”;?
Correct answer D. 8
Explanation
The + operator is arithmetic in PHP, so numeric strings are converted to numbers and added. "5" + "3" gives 8, not the concatenated "53".
Answer checked How we write and check questions
Discussion