Home>Article>Backend Development> How to wrap lines when sending text messages in php

How to wrap lines when sending text messages in php

angryTom
angryTom Original
2019-10-26 18:02:24 3936browse

How to wrap lines when sending text messages in php

How to wrap text messages in php

When we use the SMS API, we encounter the need for some text messages to wrap. , let’s take a look at how to achieve line wrapping in text messages.

1. Try using\r\nor\n

##2. Use enough

spacesAchieve line break effect

Write a code to send a text message and try every possibility;

In addition, the line break symbols of each SMS platform may be different, so please ask customer service or technical personnel. is the most effective method.

For more PHP related knowledge, please visit

PHP Chinese website!

The above is the detailed content of How to wrap lines when sending text messages in php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn