PHP Learning Notes-pre-defined hyper-global arrays

Source: Internet
Author: User
Predefined array: * Auto global variable---Hyper global array * * 1. Contains data from the Web server, client, run environment, and user input * 2. These arrays are more special * 3. The global scope automatically takes effect and can be used directly with these arrays * 4. Users cannot customize these arrays, but these data operate in the same way as our custom array operations * 5. These arrays can be used directly in the function * *$_get       //The variable submitted to the script via URL request  *$_post      //The variable submitted to the script via the HTTP POST method *$_request   //via GET, POST and COOKIE mechanisms are submitted to the script variables, so the array is not trustworthy, do not use (as far as possible) *$_files     //upload via HTTP POST  file to script, file processing chapter, File upload *$_cookie    // *$_session   //*$_env       //execution Environment The variables submitted to the script *$_server    //variables are set by the Web server or are directly associated with the execution environment of the current script * $GLOBALS    // As long as the current script is valid variables are here, the array key name is the name of the global variable *

PHP Learning Notes-pre-defined hyper-global arrays

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.