Question: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
+ Report
Total Preview: 1267

Copyright © 2024. Powered by Intellect Software Ltd