Posted in PHP onApril 09, 2008
if(is_array($HTTP_GET_VARS)) { foreach($HTTP_GET_VARS as $key=>$value) { if(is_array($HTTP_GET_VARS[$key])) { foreach($HTTP_GET_VARS[$key] as $key2=>$value2) { $myway_Var[$key][$key2] = $value2; } } else { $myway_Var[$key] = $value; } } } //读POST变量到数组 if(is_array($HTTP_POST_VARS)) { foreach($HTTP_POST_VARS as $key=>$value) { if(is_array($HTTP_POST_VARS[$key])) { foreach($HTTP_POST_VARS[$key] as $key2 => $value2) { $myway_Var[$key][$key2] = $value2; } } else { $myway_Var[$key] = $value; } } }
PHP循环获取GET和POST值的代码
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@