Expanding on my original question here: I would now like to remove more than 1 variable from the querystring.
For example, I want to remove the variables bar1 & bar2 from the querystring. I have tried the following code:
echo parseQueryString("http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'],"bar2","bar1");
But this doesn’t remove both variables, only bar2.
Any help appreciated.
Thank you,
Matt
You’ll be wanting something like
Alternatively, since I’m assuming parseQueryString is a function you defined, you can change it so it accepts an array argument and loops over the array.