What is the proper way to clear super-global variable in PHP?
Is this way correct?
$_GET = array();
Or should I use this way?
foreach ($_GET as $k => $v) {
unset($_GET[$k]);
}
What is the proper way to clear super-global variable in PHP?
Is this way correct?
$_GET = array();
Or should I use this way?
foreach ($_GET as $k => $v) {
unset($_GET[$k]);
}