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

PHPexcel行内换行

WBOY
Release: 2016-06-06 20:12:34
Original
1955 people have browsed it

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

回复内容:

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

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

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

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

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

PHP生成CSV文件

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template