Q. What will be the output of the following PHP code?
Code:
<?php
function myFunction()
{
$x = 5;
echo "Result1: $x , ";
}
myFunction();
echo "Result2: $x";
?>
β
Correct Answer: (A)
Result1: 5 , Result2: