how to remove a variable and its value which can be any value for example 123456 from this url http://www.eample.com/test.php?a=123456&b=754&c=2254
Are you asking how to not have it show in the URL? Or how to extract it from the URL to use in a script for some purpose. This is quite common.
thank you morgano but this way will devide the url into parts all what i want to do is remove the unwanted part which is a=123456
Can you explain how you intend on using the remainder of the url. I think it will help give a more appropriate answer. If you need to use the url as-is without the value pair, you would want to use parse url, and then reconstruct the url without the undesired variable. This way you are certain to remove the full parameter and value.