Home >Backend Development >PHP Problem >Are variables in php case insensitive?
php variables are case sensitive. In php, all variables are case-sensitive, including user-defined ordinary variables and predefined variables such as $_GET, $_POST, $_REQUEST, $_COOKIE, $_SESSION, $GLOBALS, $_SERVER, $_FILES, etc.
The operating environment of this tutorial: windows7 system, PHP7.1 version, DELL G3 computer
All variables are case-sensitive, including ordinary variables and $_GET, $_POST, $_REQUEST, $_COOKIE, $_SESSION, $GLOBALS, $ _SERVER, $_FILES, $_ENV and other predefined variables;
Predefined variables are also called super global variables. They can be used in all functions without being declared in advance. used in the domain. Through these predefined variables, you can obtain information such as user session, user operating system environment and local operating system environment.
Note: Predefined variables basically exist in the form of arrays.
file_uploads = 1 cannot be written as
File_uploads = 1
PHP Video Tutorial"
The above is the detailed content of Are variables in php case insensitive?. For more information, please follow other related articles on the PHP Chinese website!