Right now , I have a return function :
return array_unique(array_merge( $sizes, $custom_sizes ));
My problem is that a certain key can be lower case in one, and upper case in other .
For example , I can get "Thumbnails" in $sizes and "thumbnails" in $custom_sizes - at which case I would of course want to drop one .
(same case for names :
"starwars" vr. "StarWars" vr. "Starwars" vr. "STARWARS")
How can I make array_unique() be non case - sensitive ?
EDIT I : Following comments , a clarification :
I would also want to be able to CHOOSE which version to be kept (the one from the 1st array, or the one from the second..)