Master PHP Programming: 7 Best Approaches for Effective Learning
<?php
$array_1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow");
$array_2=array("e"=>"red","f"=>"green","g"=>"blue");
$result=array_intersect($array_1,$array_2);
print_r($result);
?>
Subscribe to the Email Newsletter