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?
If you have the parameters stored in a variable, then use parse_str. Example:
$str = 'var1=a&var2=b&var3=c'; parse_str($str); echo $var1;