note 54291 deleted from function.nl2br by nlopess
| From: | nlopess@php.net | Date: | Wed, 29 Jun 2005 19:59:11 +0000 |
| Subject: | note 54291 deleted from function.nl2br by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-91152@lists.php.net to get a copy of this message | ||
Note Submitter: dustin -at- davis village -dot- com
----
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