$superglobals = array_merge($_POST, $_GET);foreach ($superglobal AS $name => $value){ $$name = $value}