array_map_assoc() With Keys¶
array_map() only provides the value of the array, not the key. To access the key, one must use the extra argument, and array_keys().
Beware that the order of the arguments is now value first, key second, not the usual $key => $value.
See Also¶
array_map_assoc() with keys [Try me]