How to remove multiple redundant query string from url?
Hence, like below string,
Url:
localhost.com/en_ar/body?products_type=235&treatment=132?product_type=235&treatment=132&__from_store=en_bh
Resultant Url:
localhost.com/en_ar/body?product_type=235&treatment=132&__from_store=en_bh
How to remove first portion of content from string between ?content? if exist in querystring using php.
In our case remove content ?products_type=235&treatment=132? from string.