//精典代码,给大家共享:
// 获取所有 POST 或 GET 或 COOKIE 值,不再用 $_*["*"],可直接用 $*
// 获取所有 POST 或 GET 或 COOKIE 值,不再用 $_*["*"],可直接用 $*
foreach ($_GET as $hkey => $hk){ $postfield[]=$hkey;echo $hkey,"=",$hk,"<BR>";}
foreach ($_GET as $hk){ ${key($_GET)} = $hk; next($_GET);echo $hk,"<BR>";}
foreach ($_POST as $hk){ ${key($_POST)} = $hk; next($_POST);}
foreach ($_COOKIE as $hk){ ${key($_COOKIE)} = $hk; next($_COOKIE);}
//这样加上这段,就不用那么烦搞懂什么post,get和cookie啦。直接用就好了
foreach ($_GET as $hk){ ${key($_GET)} = $hk; next($_GET);echo $hk,"<BR>";}
foreach ($_POST as $hk){ ${key($_POST)} = $hk; next($_POST);}
foreach ($_COOKIE as $hk){ ${key($_COOKIE)} = $hk; next($_COOKIE);}
//这样加上这段,就不用那么烦搞懂什么post,get和cookie啦。直接用就好了