Q. What will be the output?
Code:
$a = '10 apples'; echo $a + 5;
β
Correct Answer: (A)
15
Explanation: Numeric part is extracted (10) and added.