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