<div id="endtext"> <div id="a_l_1" class="cad"></div> <div class="codeText"> <div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:php;"> $str = '数组1,数组2,数组3,数组4'; $array = explode(',',$str); //将规律字符串存入数组 $array = array_diff($array,array('数组2')); //删除指定值的数组项 $str = implode(',',$array); //将数组存为规律字符串 echo $str; </pre><div class="contentsignin">登入後複製</div></div> </div> <div class="bdlikebutton"></div> <div id="a_l_2" class="ad_b6"></div> </div> <div class="clear"></div>