"red", "b"=>"green", "c"=>"blue", "d"=>"yellow"); $array2 = array("x"=>"black", "y"=>"BLUE", "z"=>"Red"); // Computing the difference $result = array_udiff($array1, $array2, "strcasecmp"); print_r($result); ?>