PHP去除换行的两种方法
网络整理 - 08-11
第一种:$content=str_replace("\n","",$content);
echo $content;
第二种:
$content=preg_replace("/\s/","",$content);
echo $content;
$content=str_replace("\n","",$content);
echo $content;
$content=preg_replace("/\s/","",$content);
echo $content;