Home >Backend Development >PHP Problem >What does the flag in php do?

What does the flag in php do?

藏色散人
藏色散人Original
2019-11-01 10:05:265509browse

What does the flag in php do?

#What can the flag in php do?

php code example:

header("location:aaaa.php?flag=1");

where flag=1 is a URL parameter, a key-value pair, the key name is flag, the key value is 1, multiple pairs are allowed parameters, they are connected with ampersands, such as aaaa.php?flag1=1&flag2=2&flag3=3...

Then you can use $_GET["flag"] in aaaa.php to receive the value!

For more PHP related knowledge, please visit PHP Chinese website!

The above is the detailed content of What does the flag in php do?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn