Q. What will be the output?
Code:
$x = 10;
function foo() {
echo isset($x) ? 'Yes' : 'No';
}
foo();
β
Correct Answer: (B)
No
Explanation: Local scope does not see global variable.