Php Getting Started Tutorial (9) PHP pre-defined array
This is the ninth section of the php getting started tutorial. This section describes the pre-defined php arrays. For more information, see. This section describes PHP pre-defined arrays. What is a predefined array? Automatic global variable --- Super Global Array 1. contains data from web servers, clients, runtime environments, and user input. these arrays are quite special 3. these arrays can be used directly if they take effect automatically within the global range. you cannot customize these arrays. these arrays can be directly used in functions. $ _ GET // The variable $ _ POST submitted to the script through the url request // The variable $ _ REQUEST // submitted through the http post method through get, the post and cookie mechanisms are used to submit the variables to the script. Therefore, this array is not trustworthy and used. try not to use $ _ FILES // to upload the FILES to the script through the http post file, file upload $ _ COOKIE // SESSION control $ _ SESSION // SESSION control $ _ ENV // submit the execution environment to the script $ GLOBALS // All variables valid for the current script are here, the array key name is the name of the global variable $ _ SERVER // The variable is set by the web SERVER or directly associated with the current script execution environment.>>> View more php tutorials < |