php正则过滤html标签、空格、换行符的代码(附说明) 复制代码 代码如下: $str=preg_replace( " s+ ", " ", $str); 过滤多余回车 $str=preg_replace( " PHP编程 2022-04-10 39 点赞 0 评论 59 浏览