extract last argument from url using php
<p>I have either an URL like this: <code>http://url.com/test.html?var1?var2</code> or like this: <code>http://url.com/test.html?var2</code></p>

<p>how can I, using php always extract var2? meaning $variable = var2.</p>

<p>Please note that somehow the server I'm working on doesn't support $_GET. It just doesn't work.</p>

<p>thank you for your kind help :)</p>

<p>EDIT: after using <code>print_r($_GET)</code> on this url: <code>http://xxxxxx.com/partners/?page_id=1012?selectuser=1</code> I get: <code>Array ( [page_id] =&gt; 1012?selectuser=1 )</code></p>

<p>but when i do an <code>&lt;?php echo $_GET['selectuser']; ?&gt;</code> nothing gets echoed...</p>

<p>EDIT 2: doing an <code>&lt;?php var_dump($_GET['selectuser']);  ?&gt;</code> on <code>http://xxxxxx.com/partners/?page_id=1012?selectuser=1</code> I get <code>NULL</code></p>
