Usa questa funzione, e' fatta apposta: http://it.php.net/parse_str