PHP array_change_key_case

Last Updated: February 5, 2022

This function can change the case of all keys in an array

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

Parameters

array – target array

case – Either CASE_UPPER or CASE_LOWER (default)

Test