The commonly used superglobal variables in php are: 1. "$GLOBALS"; 2. "$_SERVER"; 3. "$_GET"; 4. "$_POST"; 5. "$_FILES"; 6 , "$_COOKIE"; 7. "$_SESSION"; 8. "$_REQUEST".
Superglobal variables were introduced in PHP 4.1.0 and are built-in variables that are always available in all scopes.
Commonly used super global variables in php
Super global variables: $GLOBALS, $_SERVER, $_GET, $_POST, $_FILES, $_COOKIE, $ _SESSION, $_REQUEST, $_ENV.
Many predefined variables in PHP are "superglobal", which means they are available throughout the entire scope of a script. They can be accessed within a function or method without executing global $variable;.
Please check the relevant manual content of super global variables for details://m.sbmmt.com/php/php-superglobals.html
The above is the detailed content of What are the commonly used superglobal variables in PHP?. For more information, please follow other related articles on the PHP Chinese website!