Home  >  Article  >  Backend Development  >  One minute to figure out what are predefined variables in php? What is the $_POST variable?

One minute to figure out what are predefined variables in php? What is the $_POST variable?

慕斯
慕斯Original
2021-06-30 15:42:442551browse

We have learned so much about PHP. Today we will learn in one minute what are predefined variables in PHP? What is the $_POST variable? , I wonder if you have fully mastered it. If not, then follow this article to continue learning

Related recommendations:What are variable variables in PHP? How to understand mutable variables?

Predefined variables:

The so-called predefined variables actually refer to variables that are predefined in the language tool PHP;

We just "enjoy it and use it"

Overview:

Mainly include:$, _GET,S_ POST,$_ REQUEST, $ _ SERVER, $GLOBALS,

  • ## are all arrays

  • system definition and maintenance - that is, we should not assign values ​​​​to them or To destroy its value, you should only "use its value"

  • has a super-global scope and can be used anywhere.

  • May have different values ​​in different situations

$_POST variable:

Meaning:

It represents all the data submitted when the user submits through the form in post mode (methodu "post") - this is called post data.