Menu Samaritan's Purse

ARRAY_CHANGE_KEY_CASE

Changes the case of all keys in an array

SYNTAX

array_change_key_case ( array $array [, int $case = CASE_LOWER ] ) : array

PARAMETERS

array

The array to work on

case

Either CASE_UPPER or CASE_LOWER (default)

RETURN

Returns an array with its keys lower or uppercased, or FALSE if array is not an array.

EXAMPLES

ARRAY

Array
(
    [zero] => 0
    [one] => 1
)

CASE

Array
(
    [ZERO] => 0
    [ONE] => 1
)

PHP