php判断检测一个数组里有没有重复的值

if (count($array) != count(array_unique($array))) { echo '该数组有重复值'; }

 

posted @ 2018-10-16 14:48  王默默  阅读(3657)  评论(0编辑  收藏  举报