php过滤多个空格为一个空格
<?php $text="ooo 我是 空格 "; $text=preg_replace("/(\s+)/",' ',$text); echo $text; ?>
收藏此文章 打印 更新 编辑此文章 『关闭窗口』