开发者

Format of sms text in Twilio api

i am working on sms application with twilio api, i faced a problem about sms formatting

1) a string " i'm here" in php this is going l开发者_运维百科ike this in sms body i\'m here

i dont want that slash to come up in sms

2) i want to add line break in message how can i do that.

like this Name age phone Simer 23 2546181541 Mark 25 3521447821


reply by Twilio staff:

If anyone else needs newlines, make sure your PHP strings are double quoted instead of single quoted and the \n will work: http://php.net/manual/en/language.types.string.php


In PHP there's a Magic Quotes option that (while deprecated now) escapes certain characters in a POSTs and GETs. You may be suffering from that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜