How to remove a specific parameter from the URL in PHP?
<p>Example:</p>

<pre><code>$url = http://example.com/?arg=val&amp;arg2=test&amp;arv3=testing&amp;arv2=val2  
remove_url_arg($url, "arg2")
echo($url); // http://example.com/?arg=val&amp;arv3=testing
</code></pre>

<p>The above <code>remove_url_arg</code>() function removes all occurrence of <code>arg2</code> argument from the URL </p>
