Q. What will be the output of the following PHP code?
Code:<?php
$x = 5;
function myFunction(){
echo "Result $x";
}
myFunction();
?>
β
Correct Answer: (C)
Result
<?php
$x = 5;
function myFunction(){
echo "Result $x";
}
myFunction();
?>
You must be Logged in to update hint/solution