PHP ingore case sensitivity when comparing array values

Posted by dan.codes on Stack Overflow See other posts from Stack Overflow or by dan.codes
Published on 2010-03-19T03:55:07Z Indexed on 2010/03/19 4:01 UTC
Read the original article Hit count: 218

Filed under:

I have to modify some code in a application I am working on that is using the array_diff($array1,$array2) method. The problem I am having is it is case sensitive and I need to have it return the correct value if the array values match even if the case is different. I don't want to change the case to lowercase because I need the value returned to keep its case. I'm a little confused as the best method to do this.

© Stack Overflow or respective owner

Related posts about php