php实现,取出一个数组中的重复数据! $arr = $arr;//有重复字段的数组 $repet_arr = array_diff_assoc($arr,array_unique($arr)); 亲测可以用!