Elegant solution for line-breaks (PHP)

后端 未结 8 2026
太阳男子
太阳男子 2020-12-08 14:28
$var = \"Hi there\".\"
\".\"Welcome to my website\".\"
;\" echo $var;

Is there an elegant way to handle line-breaks in PHP? I\'

8条回答
  •  清歌不尽
    2020-12-08 15:13

    \n didn't work for me. the \n appear in the bodytext of the email I was sending.. this is how I resolved it.

    str_pad($input, 990); //so that the spaces will pad out to the 990 cut off.

提交回复
热议问题