PHP ignore case sensitivity when comparing array values?

You need: array_udiff and strcasecmp $result = array_udiff($arr1, $arr2, 'strcasecmp'); E.g. $result should echo array ( ).

Thanks JD I will try it out. – dan. Codes Mar 19 '10 at 4:09 Worked perfectly, I really appreciate it.

– dan. Codes Mar 19 '10 at 4:15.

Use strcasecmp — Binary safe case-insensitive string comparison Refer this link for more information.

This is comparing arrays, not strings. – St. John Johnson Mar 19 '10 at 4:05 see my example above for array comparing, using @pavun_cool's strcasecmp and array_udiff – JD. Mar 19 '10 at 4:06 not sure that works for my situation, I am comparing two arrays whatever values are not in both get returned and then those are used – dan.

Codes Mar 19 '10 at 4:08.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions