php 判断数组中是否有重复的值

$input = array(4, "4", "3", 4, 3, "3"); 

$result = array_unique($input); */ /** array(2) { [0] => int(4) [2] => string(1) "3" } **/
原文地址:https://www.cnblogs.com/hgj123/p/4535267.html