📅  最后修改于: 2022-03-11 14:54:26.235000             🧑  作者: Mango
"green", "red", "blue", "red");
$array2 = array("b" => "green", "yellow", "red");
$result = array_diff($array1, $array2);
?>
Array
(
[1] => blue
)