标签: php jquery excel dreamweaver
不确定这是否是正确的地方,但我有一个大约11k条目的txt文件列表,但我需要转换为内联列表|分隔符....任何人对最快捷的方式有任何想法吗?
〔实施例:
是:
第1行|第2行|第3行|第4行
答案 0 :(得分:1)
<?php file_put_contents("myoutput.txt", str_replace("\n", "|", file_get_contents("myfile.txt"))); ?>