如何在使用PHP编写文本到csv时添加样式 [英] How to add style when writing text to csv using php
本文介绍了如何在使用PHP编写文本到csv时添加样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我将其写入csv时,我想保留我的文本的格式。
I want to retain the format of my text when I write it into csv.
示例
名字 John
年龄 22
strong>国家阿富汗
Country Afghanistan
在我的示例中,我有我的标签和它的价值,我想保留它的样式,当它写到csv使用PHP。有办法吗?感谢!
On my example I have my label and its value, I want to retain its style when I write it to csv using PHP. Is there a way to do that? Thanks!
推荐答案
csv
是纯文本,由逗号分隔,
。没有附加的样式。
csv
is plain text seperated by commas ,
. There is no styling attached to it. You could all caps the output, or you could use another format that supports text styles.
请参阅 - http://en.wikipedia.org/wiki/Comma-separated_values
这篇关于如何在使用PHP编写文本到csv时添加样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文