douyoufan7881 2015-11-09 09:41
浏览 124

单元格中的Php csv换行符[重复]

This question already has an answer here:

How do I line break in a cell in csv correctly, I tried this:

"\"$value
\"";

This break the data in the cell but gives me an additional

"

Sign at the second data on the cell

I tried various things but could not break it and remove the

"

sign.

Does anyone have a solution

EDIT:

Current output in the csv cell is something like this:

value1, value2, value3....

What I want is something like this

value1,
value2,
value3
</div>
  • 写回答

1条回答 默认 最新

  • dongnaigu2052 2015-11-09 09:43
    关注

    You have to add 1 more double qoute

    "\"".$value."
    ".$value2."\""
    
    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?