码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2015-05-28 10:51:48      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:

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

$result = array_unique($input); */ /** array(2) { [0] => int(4) [2] => string(1) "3" } **/

 

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

标签:

原文地址:http://www.cnblogs.com/hgj123/p/4535267.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!