Home >Backend Development >PHP Tutorial >PHPexcel行内换行

PHPexcel行内换行

WBOY
WBOYOriginal
2016-06-06 20:12:341942browse

PHPexcel行内换行
如图显示,怎么做到PHP导入excel实现行内换行。

回复内容:

PHPexcel行内换行
如图显示,怎么做到PHP导入excel实现行内换行。

用explode将他分割成数组然后循环咯

需要换行时,字符串后面加上"\n"

使用特定字符串::::::
倒入时替换为换行

如果数据量不是很大的话,可以考虑直接输出 CSV文件

PHP生成CSV文件

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn