nl2br

nl2br — Inserts HTML line breaks before all newlines in a string

nl2br ( string $string [, bool $is_xhtml = TRUE ] ) : string
Returns string with <br /> or <br> inserted before all newlines (\r\n, \n\r, \n and \r).

Input:
[?]

Have Feedback?

Let us know how we can improve this tool.
Share Feedback