php array_intersect values code example
Example: php array_intersect
<?php
$array1 = array("a" => "verde", "vermelho", "azul");
$array2 = array("b" => "verde", "amarelo", "vermelho");
$result = array_intersect($array1, $array2);
print_r($result); // Array ( [a] => verde [0] => vermelho )
?>