nl2br

Example

 string nl2br ( string $string [, bool $is_xhtml = true ] ) 

Description

Returns string with '<br />' or '<br>' inserted before all newlines (\r\n, \n\r, \n and \r).

Return Values

Returns the altered string.