nl2br
(PHP 4, PHP 5)
nl2br — Converteert newlines naar HTML line breaks
Beschrijving
string nl2br
( string $string
)
Geeft string met '<BR>' ingevoegd voor alle newlines.
Note: Vanaf PHP 4.0.5 is nl2br() XHTML compatible. Alle versies voor 4.0.5 zullen string teruggeven met '<br>' ingevoegd voor elke newline in plaat van '<br />'.
Zie ook htmlspecialchars(), htmlentities() en wordwrap().