array_change_key_case

Returns an array with all keys from input lowercased or uppercased

function array_change_key_case<Tv>(
  mixed $input,
  int $upper = CASE_LOWER,
): darray<arraykey, Tv>;

Numbered indices are left as is.

Parameters

  • mixed $input - The array to work on
  • int $upper = CASE_LOWER

Returns

  • mixed - - Returns an array with its keys lower or uppercased, or FALSE if input is not an array.