ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?
<?php
$x = 0;
function fun()
{
    echo $GLOBALS['x'];
    $x++;
}
fun();
fun();
fun();
?>

Answer & Solution
Correct Answer: Option A
This question is similar to question 6.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.