PHP export text into Excel can't see normal style as former

阅读更多
function change_excel_br($str){
    $new_str ="";
    if($str){
	    $p_new_lines   = array("\r\n", "\n", "\r","\r\n", "
","
","
","
","
"); $p_change_line_in_excel_cell = '
'; $new_str = str_replace( $p_new_lines,$p_change_line_in_excel_cell,$str); } return $new_str; }

 

你可能感兴趣的:(PHP export text into Excel can't see normal style as former)