1 $str = '数组1,数组2,数组3,数组4';
2 $array = explode(',',$str); //将规律字符串存入数组
3 $array = array_diff($array,array('数组2')); //删除指定值的数组项
4 $str = implode(',',$array); //将数组存为规律字符串
5 echo $str;
2 $array = explode(',',$str); //将规律字符串存入数组
3 $array = array_diff($array,array('数组2')); //删除指定值的数组项
4 $str = implode(',',$array); //将数组存为规律字符串
5 echo $str;