Vidyalelo
PHP · Q48

Operators And Expressions

Programming · PHP · question 48

Q48

What will be the output of the following PHP code ?

A.
41
B.
-4
C.
-5
D.
51
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
First (y) is evalulated then -z – x + $y therefore we get 51.