Introduction to PHP pre-defined variables

Source: Internet
Author: User
What are the predefined variables for PHP? This article mainly share with you the introduction of PHP predefined variables, I hope to help everyone.

1, the predefined variables are not user-defined variables, but PHP-defined variables, users directly use the line, commonly used there are 9 predefined variables

1. $_get (): Receive data from GET mode

2, $_post (): Receive the data transmitted by the POST method

3, $_request (): Receive data transmitted in any way

4, $_server: Server and client-related information

5. $GLOBALS: Global Data

6, $_cookie:cookie storage data to the user's computer

7, $_session:session the user data stored on the server, and can be used across files

8, $_files: File Upload

9, $_env: Environment variables

Different data is encapsulated in the 9 pre-defined variables above.

Related recommendations:

PHP pre-defined variables detailed

PHP predefined variable instance details PHP pre-defined variables

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.