note 69820 added to function.str-replace
| From: | Will at osu1 dot php dot net | Date: | Fri, 22 Sep 2006 05:42:20 +0000 |
| Subject: | note 69820 added to function.str-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-117409@lists.php.net to get a copy of this message | ||
re: Fatidik's function
No need to write a new function when the following gives the same result:
str_replace(array("\r", "\n"), "", $string)
----
Server IP: 64.71.164.2
Probable Submitter: 65.13.144.145
----
Manual Page -- http://www.php.net/manual/en/function.str-replace.php
Edit -- https://master.php.net/note/edit/69820
Del: integrated -- https://master.php.net/note/delete/69820/integrated
Del: useless -- https://master.php.net/note/delete/69820/useless
Del: bad code -- https://master.php.net/note/delete/69820/bad+code
Del: spam -- https://master.php.net/note/delete/69820/spam
Del: non-english -- https://master.php.net/note/delete/69820/non-english
Del: in docs -- https://master.php.net/note/delete/69820/in+docs
Del: other reasons-- https://master.php.net/note/delete/69820
Reject -- https://master.php.net/note/reject/69820
Search -- https://master.php.net/manage/user-notes.php