php php利用正则过滤各种标签,空格,换行符的代码pren 发布于 2021-10-11$str=preg_replace("/\s+/", " ", $str); //过滤多余回车 $str=preg_replace("/阅读(557)评论(0)赞 (0)标签:换行符 / 正则 / 空格