If I enter the following into the browser:
http://domain.com/script.php?1234
And script.php has the following script:
$key=array_keys($_GET);
echo $key[0];
The output will be:
1234
(I'm trying to do away with the ugly ?r=1234 and if this works, it will be perfect.)
My question is, is this officially correct or it's poor programming?