nl2br

(PHP 3, PHP 4 )

nl2br -- Insère un <br> avant chaque nouvelle ligne.

Description

string nl2br (string string)

nl2br() retourne la chaîne string dont toutes les lignes ont été remplacées par '<BR>'.

Voir aussi htmlspecialchars() et htmlentities().