Vidyalelo
PHP · Q66

Operators And Expressions

Programming · PHP · question 66

Q66

What will be the output of the following PHP code ?

A.
0
B.
105
Answer
C.
510
D.
Error

Answer: Option B

Solution

Answer: Option B
Solution:
First when the function is called variable x is initialised to 10 so 10 is printed later the global value 5 is printed.