More Working with Variable Scope : Variable Scope « Language Basics « PHP
- PHP
- Language Basics
- Variable Scope
More Working with Variable Scope
<?php
function getglobal() {
global $my_global;
echo "The value of \$foobar is '$foobar'<BR>";
}
$my_global = 20;
getglobal();
?>
Related examples in the same category