网站首页PHP
重组文本框数据,按规则重新组成新数组
发布时间:2019-03-26编辑:Cary.He
//重组文本框数据,按规则重新组成新数组
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;
}
关键字词:重组文本框数据,按规则重新组成新数组