foreach(array('_COOKIE', '_POST', '_GET') as $_request)作用?
解决方法:
假如请求地址:yayihouse.com/index.php?name=1
以下代码的作用是获取参数很方便
foreach(array('_COOKIE', '_POST', '_GET') as $_request) {
foreach($$_request as $_key => $_value) {
$_key{0} != '_' && $$_key = daddslashes($_value);
}}
设置上面代码后,通过以下方式获取参数name
echo $name;//结果1
本文链接:http://www.yayihouse.com/yayishuwu/chapter/1728