Professional Documents
Culture Documents
Learn PHP - Introduction To Functions
Learn PHP - Introduction To Functions
function scope(){
$y = 7;
echo $x;
// prints 'undefined variable'
global $x;
echo $x;
// prints 6
echo $y;
// prints 7
}
scope();
echo returnMe();