note 62857 deleted from function.str-replace by bjori
| From: | bjori@php.net | Date: | Sun, 26 Mar 2006 22:18:40 +0000 |
| Subject: | note 62857 deleted from function.str-replace by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-106661@lists.php.net to get a copy of this message | ||
Note Submitter: jeffrey
----
actually, if you have that problem you're using the wrong function. Try strtr() to swap
characters:
$s = "acbd";
$s = strtr($s, "bc", "cb");
// $s = "abcd"
And your example was uncalled for, picassodvdsmuell.