Home >Backend Development >PHP Tutorial >Analysis of the specific meaning of PHP external variables_PHP tutorial
For newcomers to the PHP language, their understanding of variables is still relatively vague. I hope that through this article you can have a detailed understanding of PHP external variables and deepen your understanding of the PHP language.
PHP external variable example code:
<ol class="dp-xml"><li class="alt"><span><span class="tag"><</span><span> ?php </span></span></li><li><span>Echo “user”; </span></li><li class="alt"><span>Echo $_get[“username”]; </span></li><li><span class="tag">?></span><span> </span></span></li></ol>
$_get can only accept the data sent back by the get method
$_post can only accept the data sent back by the post method
$ _request can accept data sent back by all methods
or it can be passed directly. PHP external variables are separated by &.
hello This is equivalent to the get method passing.
It is best to use $_get or $_request to receive.
There are other PHP external variables
$_files
$_cookie
$_session
The PHP external variables passed can be used directly on this page.