时间:2021-07-01 10:21:17 帮助过:21人阅读
文章标题1-1 1-2 1-3
www.1.comwww.2.comwww.3.comwww.4.com
$s=<<'.implode(' ',$m[1]).' ';
$str = '文章标题
1-1 1-2 1-3';
preg_match_all('',$str,$val);
foreach($val[1] as $v){
$newstr[]= "$v";
}
print_r(implode("",$newstr));
谢谢!