Return to Snippet

Revision: 25984
at April 15, 2010 06:42 by alexandrepayet


Initial Code
/* $str = chaine contenant de retour à la ligne (ex. : une saisie dans un textarea)*/
$str = nl2br($str);

Initial URL


Initial Description


Initial Title
PHP : convertir des retours à la ligne en entité html  avec la fonction nl2br()

Initial Tags
php, replace, line, convert

Initial Language
PHP