title: Remove GET parameter from url with php
body: <p>I'm trying to build a sorting system for my posts on my blog.</p>
  
  <p>When a user sort for ex: date, date and title the system sort the result on a new page by array of GET parameters.</p>
  
  <p>Ex: www.domain.com/blog?date[]=thedate&amp;date[]=thesnddate&amp;title=sometitle</p>
  
  <p>To control the sortings i display the form with radio inputs buttons to selecting the dates and title</p>
  
  <p>When a visitor search the first time i display an info box with the current search filters.</p>
  
  <p>So with the example above i would display:
  Date: the date &amp; thesnddate
  Title: some title</p>
  
  <p>Now what i need to know is how the best way is to remove one of the dates with PHP.</p>
  
  <p>I tried outputting the information is seperate input buttons with both the same ID and with another ID but this either duplicate the information or keeps them the exact same. When taking one off the other would be assigned to the url.</p>
  
  <p>Is there a way the replace the content of the url without remove all of the same?</p>
  
  <p>Ex: 
  preg replace the word date from the url. But this wouldn't work because then it removes all of the dates and i only want it to remove a single date.</p>