soma56 Posted August 15, 2010 Share Posted August 15, 2010 I've figured out how to change all of an arrays keys to lowercase: $lower_case_array = array_change_key_case($mixed_array, CASE_LOWER); But I can't seem to find a way to change the values of an array to lower case. Is there a simple way to do this? Link to comment https://forums.phpfreaks.com/topic/210780-how-to-change-all-array-values-to-lowercase/ Share on other sites More sharing options...
wildteen88 Posted August 15, 2010 Share Posted August 15, 2010 You could use array_map, set the first parameter to 'strtolower' (including the quotes) and the second parameter to $lower_case_array. Link to comment https://forums.phpfreaks.com/topic/210780-how-to-change-all-array-values-to-lowercase/#findComment-1099532 Share on other sites More sharing options...
MadTechie Posted August 15, 2010 Share Posted August 15, 2010 See example code i put in your other thread Link to comment https://forums.phpfreaks.com/topic/210780-how-to-change-all-array-values-to-lowercase/#findComment-1099534 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.