0

我正在通过 Echo 或 print_r 从我的 php 生成一串文本。我正在尝试使其适合谷歌电子表格和 Excel 列。例如

HEllo World test

Hello on First Column
World on Second Column
test on third Column

在 Windows 表单中,我可以轻松地添加 /t,它会相应地粘贴到 excel 和电子表格中,但在 php 中它不会。

我试过 /t 和 ;  和逗号

知道如何将其粘贴到相应的列中吗?

4

1 回答 1

1

PHP recognizes a tab with \t, not /t!

于 2013-06-15T19:55:36.420 回答