PHP----Pre-defined arrays

Source: Internet
Author: User

Pre-defined array Hyper-global array

<?php 
/* pre-defined array: 
* Automatic Global variables---A hyper-global array 

* 1. Contains the Web server, client, run environment, and user input data 
* 2. These arrays are more specific 
* 3. The global scope automatically takes effect, you can use these arrays directly 
* 4. Users cannot customize these arrays, but these arrays operate in the same way as array operations of their own definition 
* 5. These arrays can be used directly in the function 

* $_get//via URL Request commit to script variable 
* $_post//viathe HTTP POST method submits a variable to the script 
* $_request//viaGET, Post andvariables that the cookie mechanism submits to the script 
* $_files//viahttp POST method file upload and commit to script variables 
* $_cookie 
* $_session 
* $_env//Execution Environment commit to script variable 
* $_server//variable byset by the Web server, or directly associated with the execution environment of the current script 
* $GLOBALS//As long as the current script is valid variables are here, the array's key name is the name of the global script 


*/ 
//Hyper Global array can be called directly inside the function 
$arr =array (10,20);//General Array 
$_get=array (50,90);///Hyper Global Array 

PHP----Pre-defined 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.