Say I have something like:
&page=4
I want to replace this and make it blank, so it doesn’t exist.
But that page number could be anything, 66, 98, 17, 2, 109, etc.
Currently I have something along the lines of:
$currentpage = str_replace("&page=", "", $currentpage);
But I need it to also remove the number, how do I do this?
Thank you.
But if you are creating this yourself, you ought to do…
This will output all the GET params nicely serialised a string. When you unset the
pagemember, it obviously won’t appear 🙂