<?php$var = 10;function one(){ echo $var;}one();?>
<?php
$var = 10;
function one()
{
echo $var;
}
one();
?>
Error
10
No Output
None of the Mentioned
View Answer
Workspace
Share
Copy Text
Copy URL
Answer : Option C
Explanation :
$var is not global and hence is not available for one().
Be The First To Comment