Vidyalelo
PHP · Q77

Operators And Expressions

Programming · PHP · question 77

Q77

What will be the output of the following PHP code ?

A.
012
B.
123
C.
000
Answer
D.
111

Answer: Option C

Solution

Answer: Option C
Solution:
Every time the function is called the value of x becomes 0, therefore we get 0 on every function call.