I want to know how to compare 2 arrays in PHP for matches. I've used array_intersect($arr1, $arr2)
. I want the matches to be case insensitive.
Example:
$arr1 = ['hello', 'how', 'are', 'you'];
$arr2 = ['Hello', 'fine', 'You'];
Expected Output
['hello','you']
Thanks!