Organizational Research By

Surprising Reserch Topic

Question:array_intersect_uassoc:how to Computes the intersection of arrays with additional index check, compares indexes by a callback function using php?



asked Sep 13, 2013 in PHP by rajesh
edited Sep 12, 2013
+1 vote
57 views



Related Hot Questions

1 Answer

0 votes

 

$array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red");
$array2 = array("a" => "GREEN", "B" => "brown", "yellow", "red");
 
print_r(array_intersect_uassoc($array1, $array2, "strcasecmp"));
?>
The above example will output:
Array
(
    [b] => brown
)
answered Sep 13, 2013 by rajesh
edited Sep 12, 2013

...