标签: php get reset clear superglobals
在PHP中清除超全局变量的正确方法是什么?
这种方式是否正确?
$_GET = array();
或者我应该用这种方式吗?
foreach ($_GET as $k => $v) { unset($_GET[$k]); }