帮忙翻译一下这段PHP代码
$arrRGPC=array(&$_REQUEST,&$_GET,&$_POST,&$_COOKIE);while(list($k,$v)=each($arrRGPC))...
$arrRGPC = array(& $_REQUEST, & $_GET, & $_POST, & $_COOKIE);
while(list($k, $v) = each($arrRGPC)) {
foreach ($v as $key => $val) {
if (!is_array($val)) {
$arrRGPC[$k][$key] = htmlspecialchars($val, ENT_QUOTES);
continue;
}
$arrRGPC[] = & $arrRGPC[$k][$key];
}
}
unset($arrRGPC); 展开
while(list($k, $v) = each($arrRGPC)) {
foreach ($v as $key => $val) {
if (!is_array($val)) {
$arrRGPC[$k][$key] = htmlspecialchars($val, ENT_QUOTES);
continue;
}
$arrRGPC[] = & $arrRGPC[$k][$key];
}
}
unset($arrRGPC); 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询