ExamVeda
Login
Home
This question belongs to PHP Functions
Functions
?

What will be the output of the following PHP code ?
<?php
$var = 10;
function one()
{
    echo $var;
}
one();
?>

Answer & Solution
Correct Answer: Option C
$var is not global and hence is not available for one().
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.