GET a URL parameter with PHP
This question already has an answer here:
您可以使用php Super Global变量$ _GET轻松捕获lang变量的值:
$lang = $_GET['lang'];
echo $lang;
It is better to pass the URL parameters using add_query_var, and get the parameter using get_query_var.
Because, they can handdle the set, and get of multiple parameters, and is the recommended way of getting URL passed as parameters.
链接地址: http://www.djcxy.com/p/42290.html上一篇: 如何在PHP中获取当前浏览器URL?
下一篇: 使用PHP获取URL参数