nl2br() - string
Returns string with
or
inserted before all newlines (
,
,
and
).
Parameters :
string - The input string. is_xhtml - Whether to use XHTML compatible line breaks or not.
Syntax
string nl2br
( string $string
[, bool $is_xhtml = true
] )
Example
Output / Return Value
Limitations
Alternatives / See Also
Reference