就像array_uniquephp 的函数一样:
$input = array("a" => "green", "red", "b" => "green", "blue", "red");
$result = array_unique($input);
print_r($result);
输出:
Array
(
[a] => green
[0] => red
[1] => blue
)
谢谢!
鸿蒙传说
相关分类