在手机短信中添加换行符 [英] add line break in mobile sms
本文介绍了在手机短信中添加换行符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用某些短信服务的API,我只想知道如何从纯文本格式的php代码到移动设备添加换行符?
I am working with an API of a certain sms service and I just want to know how to add a line break from php code in a plain text format to mobile?
有人可以帮助我吗?
推荐答案
我知道这是一个老问题,但无论如何它可能会帮助某人.
I know this is an old question but anyway it might help someone.
出于跨平台兼容性的考虑,我倾向于使用 PHP_EOL
.
I tend to use PHP_EOL
for this purposes (due to cross-platform compatibility).
如果您打算在浏览器中显示结果,则必须使用< br>"
.
If you're planning to show the result in a browser then you have to use "<br>"
.
这篇关于在手机短信中添加换行符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文