81
What will be the output of the following PHP code ?
<?php
$x = 0;
function fun()
{
echo $GLOBALS['x'];
$x++;
}
fun();
fun();
fun();
?>
Answer & Solution
Answer: Option
A
Solution:
This question is similar to question 6.