21285 Posts in 5732 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 889 Views |
-
Is there opposite to HTTP::setGetVar?

9 May 2009 at 10:57am
I'm trying to do the reverse of HTTP::setGetVar, is there a method that instead of adds a variable to a url but instead removes a variable.
Example:
URL = /page-name/?var1=something&var2=somethingelseIs there a method that will remove var1=something from the URL and return /page-name/?var2=somethingelse
-
Re: Is there opposite to HTTP::setGetVar?

10 May 2009 at 7:15pm
Hi
There's always the http_build_query function (http://php.net/manual/en/function.http-build-query.php). To extract the variables from a query string, use the parse_str function (http://php.net/manual/en/function.parse-str.php)
| 889 Views | ||
|
Page:
1
|
Go to Top |


