PHP Global Variables - Superglobals

0
10K

Superglobals were introduced in PHP 4.1.0, and are built-in variables that are always available in all scopes.


PHP Global Variables - Superglobals

Some predefined variables in PHP are "superglobals", which means that they are always accessible, regardless of scope - and you can access them from any function, class or file without having to do anything special.

The PHP superglobal variables are:

The next chapters will explain some of the superglobals, and the rest will be explained in later chapters.

Search
Categories
Read More
Other
PHP Strings
A string is a sequence of characters, like "Hello world!". Strings Strings in PHP are...
By PHP Tutorial 2024-05-17 07:28:17 0 6K
Other
PHP Array Functions
PHP Array Functions PHP has a set of built-in functions that you can use on arrays....
By PHP Tutorial 2024-05-17 08:07:42 1 7K
Other
PHP if Operators
Comparison Operators If statements usually contain conditions that compare two values....
By PHP Tutorial 2024-05-17 07:45:46 0 4K
Other
PHP Introduction
PHP code is executed on the server. What You Should Already Know Before you continue you...
By PHP Tutorial 2024-05-17 07:08:40 0 4K
Other
PHP Arrays
An array stores multiple values in one single variable: ExampleGet your own PHP Server $cars...
By PHP Tutorial 2024-05-17 07:53:31 0 6K
Sociallez https://sociallez.com