Voting

: three plus zero?
(Example: nine)

The Note You're Voting On

xsaero00
11 years ago
Here is the most compact way to lower case keys in a multidimensional array

function array_change_key_case_recursive($arr)
{
return array_map(function($item){
if(is_array($item))
$item = array_change_key_case_recursive($item);
return $item;
},array_change_key_case($arr));
}

<< Back to user notes page

To Top