使用单引号创建新行?

lau*_*kok 3 php quotes newline double-quotes single-quotes

我可以这样做换行'\n'吗?

或者我必须使用双引号 - "\n"

Bra*_*rad 8

你必须使用双引号.否则,PHP将逐字输出\n.

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