PHP: Superglobals

This entry is part 12 of 54 in the series PHP Tutorial

Several predefined variables in PHP are “superglobals”, which means they are available in all scopes throughout a script.

There is no need to declare global $variable to access them within functions or methods.

These superglobal variables are:

Series Navigation<< PHP: Using $GLOBALS instead of global
PHP: $GLOBALS example >>

Leave a comment

Leave a Reply