📅  最后修改于: 2022-03-11 14:54:18.931000             🧑  作者: Mango
代码示例3
if(count(array_unique($array, SORT_REGULAR)) < count($array)) {
// $array has duplicates
} else {
// $array does not have duplicates
}