📅  最后修改于: 2022-03-11 14:53:55.251000             🧑  作者: Mango
$input = array("a" => "green", "red", "b" => "green", "blue", "red");
$result = array_unique($input);
print_r($result);
//result
Array
(
[a] => green
[0] => red
[1] => blue
)