php get variables as key with no value assigned
<p>If I enter the following into the browser:</p>

<pre><code>   http://domain.com/script.php?1234
</code></pre>

<p>And script.php has the following script:</p>

<pre><code>   $key=array_keys($_GET);
   echo $key[0];
</code></pre>

<p>The output will be:</p>

<pre><code>   1234
</code></pre>

<p>(I'm trying to do away with the ugly ?r=1234 and if this works, it will be perfect.)</p>

<p>My question is, is this officially correct or it's poor programming?</p>
