Vidyalelo
PHP · Q67

Operators And Expressions

Programming · PHP · question 67

Q67

What will be the output of the following PHP code ?

A.
43
B.
943
C.
349
D.
439
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
Firstly, the statements outside the function are printed, since z is not defined it’ll no value is printed for z. Next the function is called and the value of z inside the function is printed.