I need to obtain the identifier, name of Global variables. Eg. If I have $_REQUEST['email'] I need to obtain the word email within the $_REQUEST variable.
+2
A:
It's not very clear from this what you want. If you need a list of available keys in $_REQUEST, you can use array_keys($_REQUEST).
Wim
2010-02-10 12:55:19
A:
This will print every key with its value:
foreach($_REQUEST as $key => $value) {
print "{$key} => {$value}<br />";
}
Davide Gualano
2010-02-10 13:03:17
Or you could just use `print_r($_REQUEST);`, or `var_dump($_REQUEST);`.
Mathias Bynens
2010-02-10 13:06:32