This is what you need to know:
http://en.wikipedia.org/wiki/URI_scheme[
^].
For parsing it, you could use:
http://php.net/manual/en/function.parse-url.php[
^].
Now, with PHP, you don't have to parse all the URI string. You can use
$query = $_SERVER['QUERY_STRING'];
For parsing into separate query parameters, you could use
http://php.net/parse_str[
^].
However, you can retrieve individual URL parameter using value if you know the key, such as in
$_GET['key']
:
http://php.net/manual/en/reserved.variables.get.php[
^].
See also:
http://stackoverflow.com/questions/5397726/parse-query-string-into-an-array[
^].
I hope that's all you need.
—SA