📅  最后修改于: 2022-03-11 14:53:54.882000             🧑  作者: Mango
function has_dupes($array) {
$dupe_array = array();
foreach ($array as $val) {
if (++$dupe_array[$val] > 1) {
return true;
}
}
return false;
}