echo nl2br("One line.\nAnother line."); ?> 复制代码 输出: One line. Another line.HTML 代码: One line. Another line.