PHP nl2br() basic function

后端 未结 3 1680
一个人的身影
一个人的身影 2020-12-10 09:56

Can somebody please help me with this mail script.

I\'m simply trying to send an html email and part of the message is from a user textarea, which puts in \\r\\n.

3条回答
  •  囚心锁ツ
    2020-12-10 10:29

    An alternative is to use HEREDOC.

    $message = << some text 
       
    some more text
    OUTPUT; $message = nl2br($message);

    Manual link for heredoc here

提交回复
热议问题