note 32730 added to function.nl2br
| From: | vlakpage at vlakpage dot cz | Date: | Thu, 05 Jun 2003 12:09:27 +0000 |
| Subject: | note 32730 added to function.nl2br | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-49786@lists.php.net to get a copy of this message | ||
This works better, so you have not "infinity" lines in source code. "<br /> +
\n" is good for user and for you too!
$txt = preg_replace("/(\015\012)|(\015)|(\012)/"," <br />\n",
$txt);
----
Manual Page -- http://www.php.net/manual/en/function.nl2br.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32730
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32730&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32730&report=yes