Programming - PHP - Discussion

You Are Here :: Home > Programming > PHP - Discussion

 



Q.

What will be the output of the following code? $var = 10; function fn () { $var = 20; return $var; } fn (); echo $var;  .                          


A. 10 B. 20
C. Undefined Variable D. Syntax Error

Answer: Option A
Explaination:

 


No Explanation




Discussion

Your Comments Goes here...
NameDiscussion