1.

What will be the output of the following PHP code ?<?phpstatic $n = 5;function calc(){ echo $n; $n++;}calc();calc();calc();?>

A. 0
B. 5
C. Undefined variable: n
D. 5 and 0
E. None of these
Answer» D. 5 and 0


Discussion

No Comment Found