Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
/PHP中的Tab选项卡_Php_Html_Excel - Fatal编程技术网

/PHP中的Tab选项卡

/PHP中的Tab选项卡,php,html,excel,Php,Html,Excel,我正在通过Echo或print\r从php生成一个文本字符串。我正试图使它适合谷歌电子表格和Excel列相应。乙二醇 HEllo World test Hello on First Column World on Second Column test on third Column 在Windows窗体中,我可以轻松地添加a/t,它将相应地粘贴到excel和电子表格中,但在php中它不会 我试过/t和&符号和逗号 你知道如何将其粘贴到相应的列中吗?PHP识别带有\t的选项卡,而不是/t 至少

我正在通过Echo或print\r从php生成一个文本字符串。我正试图使它适合谷歌电子表格和Excel列相应。乙二醇

HEllo World test

Hello on First Column
World on Second Column
test on third Column
在Windows窗体中,我可以轻松地添加a/t,它将相应地粘贴到excel和电子表格中,但在php中它不会

我试过/t和&符号和逗号


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

PHP识别带有
\t
的选项卡,而不是
/t

至少,您需要使用
\t
,而不是
/t
@zdhickman OMG谢谢。我在这里犯了一个多么愚蠢的错误!我继续说,并把它作为回答。我以为会有更多的事情:)