PHP array_change_key_case Function

PHP array_change_key_case Function


Definition and Usage
The array_change_key_case() function changes all keys in an array to lowercase or uppercase.
Syntax
    array_change_key_case(array, case)
Parameter Values
Parameter
Description
array
Required. Specifies the array to use
case
Optional. Possible values:
  • CASE_LOWER - Default value. Changes the keys to lowercase
  • CASE_UPPER - Changes the keys to uppercase
 
Examples :

Here is another Example for lower_case :