title: PHP string replace?
body: <p>How can I take a string like:</p>
  
  <pre><code>navMenu[]=1&amp;navMenu[]=6&amp;navMenu[]=2&amp;navMenu[]=3&amp;navMenu[]=4&amp;navMenu[]=5
  </code></pre>
  
  <p>And in php make it so that I can remove a certain value for the navMenu[], but it would still stay in the same order but with the value removed. Or add a value as well.</p>
  
  <p>I have been tampering with exploding it at the &amp; sign but am not sure how I can add or remove a value, and making sure the &amp; sign is not at the start or end of the string.</p>