PHP Cut URL from some variable query : <p>if I have some URL like these:</p>

<p><code>http://localhost/myfile.php?start=2018&amp;end=2019&amp;page=1&amp;status=</code></p>

<p>Did anynone know how to replace any words from that link that contain <code>page=</code> ?</p>

<p>The result that I want is :</p>

<p><code>http://localhost/myfile.php?start=2018&amp;end=2019&amp;status=</code></p>

<p>Even if the link is like this:</p>

<p><code>http://localhost/myfile.php?start=2018&amp;end=2019&amp;status=&amp;page=3</code></p>

<p>I still want the result will be without <code>page</code> variable and value, so it might be:
<code>http://localhost/myfile.php?start=2018&amp;end=2019&amp;status=</code></p>

<p>any idea how to do this? Especially without regex (regex is my last option)</p>
