Vidyalelo
PHP · Q47

Operators And Expressions

Programming · PHP · question 47

Q47

What will be the output of the following PHP code ?

A.
5
Answer
B.
3
C.
0
D.
1

Answer: Option A

Solution

Answer: Option A
Solution:
The inner most bracket is evaluated first, since it covers only variable y it is as good as not using brackets.