note 59615 added to function.str-ireplace
| From: | mishapsuedonym at gmail dot com | Date: | Sun, 11 Dec 2005 05:40:21 +0000 |
| Subject: | note 59615 added to function.str-ireplace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-99941@lists.php.net to get a copy of this message | ||
Note that if you want to get rid of all whitespace characters (or any combination that includes a
space and other characters) by replacing them with a null string, then you have to replace the space
seperate from the others (all of which have an escape key).
So, you'll have to have two lines that look like this:
$somestring=str_replace(" ", "", $somestring);
$somestring=str_replace("\r\n\t\n\0\x0B", "", $somestring);
----
Manual Page -- http://www.php.net/manual/en/function.str-ireplace.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+59615
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59615&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59615&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59615&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59615&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59615&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59615&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59615&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+59615&report=yes
Search -- http://master.php.net/manage/user-notes.php