title: php REQUEST_URI
body: <p>I have the following php script to read the request in URL :</p>
  
  <pre><code>$id = '/' != ($_SERVER['REQUEST_URI']) ? 
      str_replace('/?id=' ,"", $_SERVER['REQUEST_URI']) : 0;
  </code></pre>
  
  <p>It was used when the URL is <code>http://www.testing.com/?id=123</code></p>
  
  <p>But now I wanna pass 1 more variable in url string <code>http://www.testing.com/?id=123&amp;othervar=123</code></p>
  
  <p>how should I change the code above to retrieve both variable? </p>