php 检查该数组有重复值

if (count($array) != count(array_unique($array)))

{ echo '该数组有重复值'; }

posted @ 2017-07-06 17:41  二年后的今天  阅读(1061)  评论(0编辑  收藏  举报