Making a new line with single quotes?

后端 未结 4 628
鱼传尺愫
鱼传尺愫 2020-12-21 10:03

Can I do a line break like this \'\\n\'?

Or do I must use double quotes - \"\\n\"?

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-21 10:49

    You have to use double quotes. Otherwise, PHP will literally output \n.

    http://php.net/manual/en/language.types.string.php

提交回复
热议问题