$column = str_replace(',',' ', $rows[address]);
$column = addslashes($column);
$column = str_replace("\n", " ",$column);
$contents.= $column."\t";
$contents.="\n";
}
header("Content-type: application/ms-excel");
header("Content-Disposition: attachment; filename=Confirmed.xls");
print $contents;
如何在不替换“/n”的情况下放置地址字段,因为它是一个地址字段,我想以一种好的方式在单元格中显示它......替换“返回”使我的地址成为单行。