Toggle navigation
首页
发现
关于
-->
登录
注册
官方博客
关注
关注 4
粉丝 3
php中如何去除换行符方法的总结
第一种写法:
$content=str_replace("\n","",$content);
echo $content;
第二种写法:
str_replace("\r\n","",$str);
第三种写法:
$content=preg_replace("/\s/","",$content);
echo $content;
#搜索资料
#php
2020-09-29 13:02:45
0 热度
下一篇文章
评论