On the public platform development of the problem of line!!!!
First of all, I am doing public platform development, and then meet the need to wrap the text, I have Baidu has a lot of articles are said to use "\ n" can be, but I want to achieve is two lines between the text will have a blank line, that use "\ n", but the text returned by the phone does not appear between the two lines of text
Ask the great God ....
Post Code and pictures:
/**
* Display Help information
* @return return Help information text
*/
Private Function Help () {
$text = "Hello, here is the beauty of Creative Signage Logo Co., Ltd., please reply to the Digital choice service: \ n";
$text. = "The mark of the signs information \ n";
$text. = "2--sculpture art information \ n";
$text. = "3--brand design information \ n";
$text. = "4--weather information query \ n";
$text. = "5--about author information \ n";
$text. = "Reply"? " Display this Help menu \ nthe ";
return $text;
}
Share to:
------Solution--------------------
That's what I did. A blank line can be returned.
Don't know what's going on but there's no need to add a space.
Would you like to have a try between \ nthe?
------Solution--------------------
Use \ r \ n to try ....