<分区>
Possible Duplicate:
PHP - how to create a newline character?
我正在尝试创建一个 csv 文件。 但我得到的只是一行。 我以为
echo '\r\n' . $lineStr;
将创建一个新行。
我添加了以下标题:
header("Content-Type: application/vnd.ms-excel; charset=utf-8");
header("Content-Disposition: attachment; filename=myFile.xls");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false);