Vidyalelo
PHP · Q9

Basic PHP

Programming · PHP · question 9

Q9

What will be the output of the following php code?

A.
3
Answer
B.
1+2
C.
Error
D.
12

Answer: Option A

Solution

Answer: Option A
Solution:
The numbers inside the double quotes are considered as integers and not string, therefore the value 3 is printed and not 1+2.