Показать выпадающий список

nl2br()

« next | Normalizer::isNormalized »
<?php
$string 
nl2br (
    
// string $string
    
?  // [bool $is_xhtml = true]
);
?>
Результат
$string = 'foo isn\'t<br />
 bar'
Примеры
#1 nl2br  ("foo isn't\n bar")
#2 nl2br  ("Welcome\r\nThis is my HTML document",
 
false)
#3 nl2br  ("This\r\nis\n\ra\nstring\r")
См. также
htmlentities, htmlspecialchars, str_replace, wordwrap