nl2br

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

説明

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

戻り値

Returns the altered string.