i have a need to get an undefined $_GET['$VARIABLE'].
so that if a link comes into item.php?changingitemstyle=10101010101010
I need to find out how to extract the name of the variable not the value.
Any ideas?
i have a need to get an undefined $_GET['$VARIABLE'].
so that if a link comes into item.php?changingitemstyle=10101010101010
I need to find out how to extract the name of the variable not the value.
Any ideas?
Use the array_keys()
function to retrieve an array of the keys of an array.
$_GET is a dictionary, so you can get the keys easily enough (unless I'm misunderstanding the question):
foreach( $_GET as $var_name => $value ) {
// Do something here
}