str_replace("\r\n","<br />",$xmactivity['xmdetail'])

 

导出excel换行方法 

str_replace("\r\n","<br style='mso-data-placement:same-cell;'/>",$v['sidan_remark'])