note 62857 added to function.str-replace

From: Date: Sat, 11 Mar 2006 00:11:03 +0000
Subject: note 62857 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-105251@lists.php.net to get a copy of this message
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. ---- Server IP: 64.71.164.2 Probable Submitter: 144.92.96.228 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.str-replace.php Edit -- http://master.php.net/note/edit/62857 Del: integrated -- http://master.php.net/note/delete/62857/integrated Del: useless -- http://master.php.net/note/delete/62857/useless Del: bad code -- http://master.php.net/note/delete/62857/bad+code Del: spam -- http://master.php.net/note/delete/62857/spam Del: non-english -- http://master.php.net/note/delete/62857/non-english Del: in docs -- http://master.php.net/note/delete/62857/in+docs Del: other reasons-- http://master.php.net/note/delete/62857 Reject -- http://master.php.net/note/reject/62857 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#105251) next »