php REQUEST_URI
<p>I have the following php script to read the request in URL :</p>

<p><code>
$id = '/' != ($_SERVER['REQUEST_URI']) ? str_replace('/?id=' ,"", $_SERVER['REQUEST_URI']) : 0;
</code></p>

<p>It was used when the URL is <a href="http://www.testing.com/?id=123" rel="nofollow">http://www.testing.com/?id=123</a></p>

<p>But now I wanna pass 1 more variable in url string <a href="http://www.testing.com/?id=123&amp;othervar=123" rel="nofollow">http://www.testing.com/?id=123&amp;othervar=123</a></p>

<p>how should I change the code above to retrieve both variable? </p>
