Get URL parameter name in PHP -


i working on php controller, url:

www.example.com?field1=test1&field2=test2&field3=test3 

i know can value this:

$_get['field1'] // return test1 

but need return name of field, in case field1, i'm wondering if can loop through $_get variable, i'm not sure how.

$_post array. can loop through this:

foreach($_post $key=>$value) {   echo "$key=$value"; } 

there's array_keys function might of use.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -