note 83656 deleted from function.str-replace by mgf
| From: | mgf@php.net | Date: | Fri, 06 Jun 2008 09:44:27 +0000 |
| Subject: | note 83656 deleted from function.str-replace by mgf | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-140172@lists.php.net to get a copy of this message | ||
Note Submitter: adam dot chou at gmail dot com
Reason: useless
----
It should be noted that
str_replace("\n", "slashn", $haystack);
will replace both the newline character AND the string "\n". So the following text:
"test\n
test"
will be replaced to be
"testslashnslashntest"