Is there a way to traverse an array, such as $ _POST, to see field names, not just values. To see the meanings, I am doing something like this.
foreach ($_POST as $value){ echo $value; }
This will show me the values - but I would also like to display the names in this array. If my $ _POST value was something like $ _POST ['something'] and it was stored 55; I want to output "something."
I have several input fields for which I need this.
source share