array array_intersect ( array arr1, array arr2 [, array ...] )
$toppings1 = array("Pepperoni", "Cheese", "Anchovies", "Tomatoes");
$toppings2 = array("Ham", "Cheese", "Peppers");
$int_toppings = array_intersect($toppings1, $toppings2);
var_dump($int_toppings);
?>