Passing variables through the URL is awesome but how do you update, say, the id or the page when there's twenty different variables (index.php?id=2325213&page=30&view=210&sort=213&user=231221). Here's a quick function to create a new URL string that will replace values of specific variables. You can also remove variables which are not necessary.




