Source Code:
(back to article)
<?php $array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red"); $array2 = array("a" => "green", "b" => "yellow", "d" => "red"); $array3 = array("a" => "green", "c" => "brown", "g" => "blue"); $result = array_intersect_key($array1, $array2, $array3); print_r($result); ?>
Result:
Report an issue