How to get $_GET from a given variable?

How to get $_GET from a given variable.

I have

$url = ‘http://www.abc.com?q1=some&q2=text’;

and, I want to get q1 and q2 from the above variable. how to do that?

parse_url and then [URL=“http://nl2.php.net/manual/en/function.parse-str.php”]parse_str