Problem Statement
Explain variable scope inside PHP functions.
Explanation
Variables inside a function are local by default. To access global variables inside a function, you use the global keyword or the $GLOBALS array.
Code Solution
SolutionRead Only
function show(){ global $x; echo $x; }