<html>
<body>
$a1=array("red","green","blue","yellow");
$a2=array("red","green","blue");
$result=array_intersect_key($a1,$a2);
print_r($result);
</body>
<!-- Mirrored from www.w3schools.com/php7/phptryit.asp?filename=tryphp_func_array_intersect_key2 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 13:40:32 GMT -->
</html>