Web Programming with PHP

15 Predefined Variables

PHP provides a large number of predefined variables or built-in variables to all scripts:

These predefined variables in PHP are "superglobals", or automatic global variables, which means they are available in all scopes throughout a script. There is no need to do global $variable; to access them within functions or methods.

References

PHP Manual

Slides