I have the following php script to read the request at the url:
$id = '/' != ($_SERVER['REQUEST_URI']) ?
str_replace('/?id=' ,"", $_SERVER['REQUEST_URI']) : 0;
It was used when URL http://www.testing.com/?id=123
But now I want to pass another variable in the url string http://www.testing.com/?id=123&othervar=123
How do I change the code above to get both variables?
source
share