RsD0p9BK
12/22/2015 - 4:24 AM

array_idiff.php

// Case-insensitive “array_diff”

function array_casecmp($arr1, $arr2){
  return array_udiff($arr1, $arr2,'strcasecmp');
}

$obs_ws = array("you", "your", "may", "me", "my", "etc");
$all_ws = array("LOVE", "World", "Your", "my", "etc", "CoDe");

var_dump( array_casecmp($all_ws, $obs_ws) );

// http://stackoverflow.com/questions/1875862/php-case-insensitive-array-diff