note 83656 added to function.str-replace
| From: | adamdotchouatgmaildotcom at osu1 dot php dot net | Date: | Fri, 06 Jun 2008 07:23:27 +0000 |
| Subject: | note 83656 added to function.str-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140166@lists.php.net to get a copy of this message | ||
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"
----
Server IP: 64.71.164.2
Probable Submitter: 76.90.22.154
----
Manual Page -- http://www.php.net/manual/en/function.str-replace.php
Edit -- https://master.php.net/note/edit/83656
Del: integrated -- https://master.php.net/note/delete/83656/integrated
Del: useless -- https://master.php.net/note/delete/83656/useless
Del: bad code -- https://master.php.net/note/delete/83656/bad+code
Del: spam -- https://master.php.net/note/delete/83656/spam
Del: non-english -- https://master.php.net/note/delete/83656/non-english
Del: in docs -- https://master.php.net/note/delete/83656/in+docs
Del: other reasons-- https://master.php.net/note/delete/83656
Reject -- https://master.php.net/note/reject/83656
Search -- https://master.php.net/manage/user-notes.php