In a situation such as this one:
array_walk($first_names, function($item) {
// do something with the key not the value
}
);
How can I extract the $item key to use? It's passed as the string value of the $first_names item, but inside the callback function, I would like to use the key not the value. Any ideas?