如何使用$_GET从index.php中提取?23456
例如:
www.example.com/index.php?23456
www.example.com/?23456
或者:
www.example.com/index.php?23456&55555
结果应该是:
echo $string; // result 23456
echo $string2; // result 23456
最佳答案
$strings = explode("&",$_SERVER['QUERY_STRING']);
echo $strings[0];
echo $strings[1];
关于php - 我如何使用 $_GET 从 index.php 中提取?23456,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4117867/