How to change array keys from uppercase to lowercase?

The array_change_key_case() function changes all keys in an array to lowercase or uppercase.


This function takes array as a first parameter, It will return FALSE if given input is not an array.
Second parameter is optional,you can pass either CASE_LOWER or CASE_UPPER and default value is “CASE_LOWER”. This function is supported from PHP 4.2 and above.

Example :

Example :

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.

I am Arjun from Hyderabad (India). I have been working as a software engineer from last 7+ years, and its my passion to learn new things and implement them as a practice. Aside from work, I likes gardening and spending time with pets. Protection Status