重组文本框数据,按规则重新组成新数组
//重组文本框数据,按规则重新组成新数组
public function Arr_textarea($arr){
foreach($arr as $areaname) {
static $area = array();
$areaname = trim($areaname);
$area[] = $areaname;
}
foreach($area as $k=>$v){
static $f = array();
$new = explode('----',$v);
$f[] = $new;
}
return $f;
}
发表评论