Changing the value of a single variable in querystring

I am assigned the URL of the page, for example, 'http://abc.com/test.php?a=1&b=2&c=3' . Now I was told to change the value of b to 5 so that it becomes 'http://abc.com/test.php?a=1&b=5&c=3' .

ie change from http://abc.com/test.php?a=1&b=2&c=3 to http://abc.com/test.php?a=1&b=5&c=3

Note: the variable b can refer to any name here.

+8
php regex url-rewriting
Oct 27 '10 at 21:35
source share
1 answer

Using

+20
Oct 27 '10 at 21:39
source share



All Articles