php替换br标签为空格2021-02-18 · 加油站 $str = "1234567<br>abce123<br />十分钟课堂"; echo preg_replace("/<br\s*\/?>/i", " ", $str);