Esiste giā una funzione apposta:

Codice PHP:
parse_str($_SERVER['QUERY_STRING'],$output);