note 38072 added to function.str-replace
| From: | te0 at playrpg dot com | Date: | Sun, 07 Dec 2003 14:49:15 +0000 |
| Subject: | note 38072 added to function.str-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-61590@lists.php.net to get a copy of this message | ||
Daniellus83:
I believe it's possible to use nl2br() to insert the <br />'s and htmlspecialchars()
to convert all " ' etc.
for example:
$mystring = $db->query();
$mystring = nl2br($mystring);
$mystring = htmlspecialchars($mystring);
echo "\n" . $mystring;
----
Manual Page -- http://www.php.net/manual/en/function.str-replace.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38072
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38072&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38072&report=yes
Search -- http://master.php.net/manage/user-notes.php