Home >Backend Development >PHP Tutorial >php predefined variables

php predefined variables

伊谢尔伦
伊谢尔伦Original
2016-11-22 11:08:551155browse

For all scripts, PHP provides a large number of predefined variables. These variables represent all external variables as built-in environment variables and error messages as return headers.

Super global variables — Super global variables are built-in variables that are always available in all scopes

$GLOBALS — References all variables available in the global scope

$_SERVER — Server and execution environment information

$_GET — HTTP GET variable _ $ _post - http post variables

$ _Files -http file upload variables

$ _Request — Http Request variables

$ _Session

$ _NV

_ _ _ _ _ _ — — — _ _ _ _ _ _


g $ PHP_ERRORMSG —— Previous error information
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn