How can I get a key from an array in anonymous function , using ‘array_map’ ?
array_map(function($v) {
echo $v.'<br/>'; //get key (container..e.t.c)
},array(
'CONTAINER' => $this->CONTAINER ,
'CONTAINER_USE_KEY' => $this->CONTAINER_USE_KEY ,
'LINE' => $this->LINE
));
If you can use
array_walk()instead ofarray_map()you can do this: