PHP Manual$GLOBALS(PHP 4, PHP 5) $GLOBALS — References all variables available in global scope DescriptionAn associative array containing references to all variables which are currently defined in the global scope of the script. The variable names are the keys of the array. Examples
Example #1 $GLOBALS example
<?php The above example will output something similar to: $foo in global scope: Example content $foo in current scope: local variable Notes
![]() |
PHP-Index
New Tutorial entries
|