$goodspdata[$gkey] = $val['id']; //array_push($a,'444'); } $c = array_merge($goodspdata,$a);//数组合并 $b = array_unique($c);//去重 $d = implode(',',$b);//按照方式输出字符串 ps explode() ,json_encode ["940","950"] print_r($d);...