1 $res = array(); 2 foreach ($store as $value) { 3 //查看有没有重复项 4 if (isset($res[$value['bid']])) { 5 //有:销毁 6 unset($value['bid']); 7 } else { 8 $res[$value['bid']] =$value; 9 } 10 }