Some variables
Hello World - Wow, it does!---In the function, x is 1001---In the function, when you add y, x is 11001---Finally, x is 11001
Next
<?php;
echo "Hello World - Wow, it does!";
$x=1;
$y=10000;
function add2x(){
global $x;
static $remember;
$x=$x+1000;
echo "---In the function, x is ".$x;
$x=$x+$GLOBALS['y'];
echo "---In the function, when you add y, x is ".$x;
}
add2x();
echo "---Finally, x is ".$x;
?>