Home >Backend Development >PHP Problem >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!