Discussion :: PHP - CS
-
What will be the output of the following PHP code ?
<?php
$x = 5;
function fun()
{
echo "$x";
}
fun();
?>
Answer : Option C
Explanation :
The variable x is not defined inside the function fun(), therefore nothing is printed on the screen.
Be The First To Comment