Vidyalelo
PHP · Q54

Operators And Expressions

Programming · PHP · question 54

Q54

What will be the output of the following PHP code ?

A.
0.75
Answer
B.
0.05
C.
1.25
D.
Error

Answer: Option A

Solution

Answer: Option A
Solution:
Since the variable initialised is on_e the echo statement treats $on_e as 0;