title: How can I replace a variable in a get query in PHP?
body: <p>I have an URL</p>
  
  <pre><code>http://example.com/test?xyz=27373&amp;page=4&amp;test=5
  </code></pre>
  
  <p>which I want to tranform by replacing the <code>page=4</code> through <code>page=XYZ</code></p>
  
  <p>how can I do that with <a href="http://php.net/preg_replace" rel="nofollow noreferrer"><code>preg_replace</code></a>?</p>