note 13955 added to function.nl2br.php
| From: | gecco at mangaitalia dot it | Date: | Wed, 11 Jul 2001 12:32:24 +0000 |
| Subject: | note 13955 added to function.nl2br.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15230@lists.php.net to get a copy of this message | ||
for convert all \n to <br> and if don't want to use nl2br, use this simple
regular expression
$text = ereg_replace("(\n)", "<BR>", $text);
# note:
# <BR> is \<br\> whitout \
#
http://www.php.net/manual/en/function.nl2br.php