How to get and disect the query string appended into a url? PHP
<p>I am trying to develop a PHP class which would enable me to get the query string appended into a url and process it according to the variables passed. How can this be done?</p>

<p>Eg</p>

<pre><code>www.example.com?var1=a&amp;var2=b&amp;var3=c
</code></pre>

<p>now I want to get <code>?var1=a&amp;var2=b&amp;var3=c</code> section and process it based on the variables.</p>

<p>Thanks for your responses</p>

<p>but I want a means by which I can get the whole query string since I wont be sure of the variable names that will be sent into the URL thus the $_GET method wont work properly.</p>

<p>Thanks</p>
