<html lang="en">
<head>
<meta charset="utf-8">
<title>PHP Intersect Associative Arrays Using Value Comparison Function</title>
</head>
<body>
<pre>
// Sample arrays
$array1 = array("a"=>"red", "b"=>"green", "c"=>"blue", "d"=>"yellow");
$array2 = array("x"=>"black", "y"=>"BLUE", "z"=>"Red");
// Computing the intersection
$result = array_uintersect($array1, $array2, "strcasecmp");
print_r($result);
</pre>
</body>