PHP Global Variables - Superglobals

0
7K

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 Multiline Comments
Multi-line Comments Multi-line comments start with /* and end with */. Any text...
By PHP Tutorial 2024-05-17 07:15:48 0 4K
Other
الثورة البلوكتشين وتحولاتها في الصناعات المختلفة
مقدمة: شهدت تقنية البلوكتشين ثورة هائلة في السنوات الأخيرة، حيث أصبحت لديها القدرة على تغيير...
By MOHAMED ATTALLAH 2024-05-14 14:03:03 0 5K
Other
PHP Break
The break statement can be used to jump out of different kind of loops. Break in For...
By PHP Tutorial 2024-05-17 07:50:37 0 4K
Other
PHP Comments
Comments in PHP A comment in PHP code is a line that is not executed as a part of the program....
By PHP Tutorial 2024-05-17 07:14:49 0 4K
Other
PHP if Statements
Conditional statements are used to perform different actions based on different conditions....
By PHP Tutorial 2024-05-17 07:45:23 0 3K