Vidyalelo
PHP · Q50

Operators And Expressions

Programming · PHP · question 50

Q50

What will be the output of the following PHP code ?

A.
1.75
B.
0.875
Answer
C.
3.5
D.
Error

Answer: Option B

Solution

Answer: Option B
Solution:
First y is evaluated then this is divided by $z therefore we get 0.875.