note 59921 added to function.nl2br
| From: | btm at anfo dot pl | Date: | Tue, 20 Dec 2005 11:22:11 +0000 |
| Subject: | note 59921 added to function.nl2br | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-100450@lists.php.net to get a copy of this message | ||
Comment on emailfire at gmail dot com nl2brr. It should be:
<? return str_replace(array("\r\n", "\n", "\r"),
"<br>", $text); ?>
You've forgotten the backslashes.
----
Manual Page -- http://www.php.net/manual/en/function.nl2br.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+59921
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59921&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59921&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59921&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59921&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59921&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59921&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59921&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+59921&report=yes
Search -- http://master.php.net/manage/user-notes.php