PHP url question
<p>Is there a way I can strip out the variables from a link using PHP for example, if I have a link that reads <code>http://localhost/link/index.php?s=30&amp;p=3</code> how would I strip out <code>?s=30&amp;p=3</code> so my link reads <code>http://localhost/link/index.php</code></p>
