array_change_key_case() combined with array_flip()
array_change_key_case() is a very practical array function that uniformly converts all key names in an array. This function can simplify the problem caused by case inconsistency when processing user input or interface data.
array_change_key_case