PHP get query string from a string
<p>I have a string with a URL </p>

<pre><code>$string = "http://www.yahoo.com/foo.php?bar=201";
</code></pre>

<p>all i want is the query string without everything else.</p>

<p>obviously cant user query_string, help appreciated.</p>
