note 54291 added to function.nl2br
| From: | dustin-at-davisvillage-dot-com at osu1 dot php dot net | Date: | Wed, 29 Jun 2005 19:58:13 +0000 |
| Subject: | note 54291 added to function.nl2br | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-91151@lists.php.net to get a copy of this message | ||
Wow, I never knew this function existed! It should save me a lot of time. This:
$str = nl2br($str);
is so much easier than this:
$str = str_replace("\n", '<br />', $str);
:P hehe
----
Manual Page -- http://www.php.net/manual/en/function.nl2br.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54291
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54291&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54291&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54291&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54291&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54291&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54291&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54291&report=yes
Search -- http://master.php.net/manage/user-notes.php