|
PHP5中文手册
nl2br(PHP 4, PHP 5) nl2br — Inserts HTML line breaks before all newlines in a string 说明
string nl2br
( string $string
)
Returns string with '<br />' inserted before all newlines. 参数
返回值Returns the altered string. 更新日志
范例
Example#1 using nl2br()
<?php 上例将输出:
|