Scope Demo
Demonstrates variable scope
$a = "I have a value";
$b = "I have a value";
print <<
\$a is "$a", and
\$b is "$b", and
HERE;
myFunction();
function myFunction() {
//make $a global, but not $b
global $a;
print <<
\$a is "$a", and
\$b is "$b", and
HERE;
} // end myFunction
?>