Q66
What will be the output of the following PHP code ?
A.
0
B.
105
AnswerC.
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.