PHP 8.4.24 Released!

Voting

: max(two, zero)?
(Example: nine)

The Note You're Voting On

xsaero00
12 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