note 48051 added to function.str-replace
| From: | php-general at lists dot php dot net | Date: | Thu, 09 Dec 2004 23:21:22 +0000 |
| Subject: | note 48051 added to function.str-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-81617@lists.php.net to get a copy of this message | ||
Actually, nl2br() and the below function are not identical - the below function replaces the
linebreak with a <br>, whereas nl2br() adds a <br> but also retains the newline.
----
Manual Page -- http://www.php.net/manual/en/function.str-replace.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48051
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48051&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48051&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48051&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48051&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48051&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48051&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48051&report=yes
Search -- http://master.php.net/manage/user-notes.php