ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?
<?php
$x = 5;
function fun()
{
    echo "$x";
}
fun();
?>

Answer & Solution
Correct Answer: Option C
The variable x is not defined inside the function fun(), therefore nothing is printed on the screen.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.