日期:2014-05-17 浏览次数:20472 次
$superglobal = array(
'GLOBALS' => 1,
'_GET' => 1,
'_POST' => 1,
'_COOKIE' => 1,
'_SERVER' => 1,
'_FILES' => 1,
);
foreach($GLOBALS as $k=>$v) {
if(!isset($superglobal[$k])) {
$GLOBALS[$k] = null; unset($GLOBALS[$k]);
}
}