tags:

views:

27

answers:

2

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
A: 

This will print every key with its value:

foreach($_REQUEST as $key => $value) {
    print "{$key} => {$value}<br />";
}
Davide Gualano
Or you could just use `print_r($_REQUEST);`, or `var_dump($_REQUEST);`.
Mathias Bynens