I want to be able to return all of the parameters that are being passed into a specific page using PHP.
$_SERVER['QUERY_STRING'];
Seems to perform this task adequately, however I have heard many warn against the use of $_SERVER variables due to their sometimes inconsistent nature. So I was wondering if there are any best practice guidelines on creating a string consisting of everything after the ? of a URL.