【问题标题】:Break in String in SMS (PHP)短信中的字符串中断(PHP)
【发布时间】:2018-06-06 11:05:13
【问题描述】:

我有这个代码:

mail(111222333@vtext.com, "A message", ("test /n test"), implode("\r\n", $headers));

我希望短信显示以下内容。

测试

测试

现在它显示出来了。

测试测试

【问题讨论】:

标签: php formatting format phpmailer string-formatting


【解决方案1】:

你的斜线是错误的:

mail(111222333@vtext.com, "A message", ("test \n test"), implode("\r\n", $headers));

【讨论】:

    猜你喜欢
    • 2011-08-11
    • 2011-04-28
    • 1970-01-01
    • 1970-01-01
    • 2013-04-23
    • 1970-01-01
    • 2015-10-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多