运维网's Archiver
论坛
›
php
› php中替换换行
(安西)
发表于 2017-3-30 11:46:31
php中替换换行
preg_replace('/\r|\n/','', $recv['Check']);
$content=str_replace("\n","",$content);
echo $content;
$content=preg_replace("/\s/","",$content);
echo $content;
页:
[1]
查看完整版本:
php中替换换行