title: How to remove any given $_GET variable from URL with PHP?
body: <p>I'm puttings filters in links with <code>GET</code> variables like this: <code>http://example.com/list?size=3&amp;color=7</code> and I'd like to remove any given filter parameter from URL whenever a different value for that particular filter is selected so that it doesn't, for example, repeat the <code>color</code> filter like so:</p>
  
  <p><code>http://example.com/list?size=3&amp;color=7&amp;color=1</code></p>
  
  <p>How can I <code>if(isset($_GET['color'])) { removeGet('color'); }</code> ?</p>