$str = "1234567<br>abce123<br />十分钟课堂";
echo preg_replace("/<br\s*\/?>/i", " ", $str);