📌  相关文章
📜  如何在 php 代码示例中获取数组不相似的元素

📅  最后修改于: 2022-03-11 14:53:55.251000             🧑  作者: Mango

代码示例1
$input = array("a" => "green", "red", "b" => "green", "blue", "red");
$result = array_unique($input);
print_r($result);

//result
Array
(
    [a] => green
    [0] => red
    [1] => blue
)