What are global variables in PHP 2024?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at Princeton University, Lives in Princeton, NJ
PHP Global Variables - Superglobals. Several 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: $GLOBALS.
2023-05-13 06:48:16
评论(499)
Helpful(122)
Helpful
Helpful(2)

Scarlett Gonzales
QuesHub.com delivers expert answers and knowledge to you.
PHP Global Variables - Superglobals. Several 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: $GLOBALS.