📅  最后修改于: 2022-03-11 14:53:37.490000             🧑  作者: Mango
if(count(array_unique($array, SORT_REGULAR)) < count($array)) {
// $array has duplicates
} else {
// $array does not have duplicates
}