Php Getting Started Tutorial (9) PHP pre-defined array

Source: Internet
Author: User
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 <

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.