$str=preg_replace("/\[(.+?)\]/i","",$field_thread[lrc_msg]);
$field_thread[lrc]=preg_replace("/(\r?\n)+/","<br />",$str);

解决方案 »

  1.   

    $str=preg_replace("/\[(.+?)\]/i","",$field_thread[lrc_msg]);
    $field_thread[lrc]=preg_replace("/(\r?\n)+/","\r\n",$str);$str=preg_replace("/\[(.+?)\]/i","",$field_thread[lrc_msg]);
    $field_thread[lrc]=preg_replace("/(\r?\n)+/","<br />\r\n",$str);不知道你要的是什么。<br>不就是换行吗?
      

  2.   

    $str=preg_replace("/\[(.+?)\]/i","",$field_thread[lrc_msg]);
    $field_thread[lrc]=preg_replace("/(\r?\n)+/","<br /><br />",$str);$str=preg_replace("/\[(.+?)\]/i","",$field_thread[lrc_msg]);
    $field_thread[lrc]=preg_replace("/(\r?\n)+/","\r\n\r\n",$str);你挑一个吧。