note 29805 added to function.str-replace

From: Date: Tue, 25 Feb 2003 17:31:38 +0000
Subject: note 29805 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-44510@lists.php.net to get a copy of this message
This is based on a fair comment signed by: * brooke at jump dot net * strtr can "source-replace" complete strings, not only chars, like reminiscences of ancient languages could suggest: $permutation = array(strtr('hello, hello and hi', array("hello" => "hi", "hi" => "hello"))); So am I wrong if I say that str_replace doesn't makes sense, because you can construct it with: 1) strtr(array form) for "source-replacing" 2) [loop struct]+strtr(scalar form) for "transient replacing" -- http://www.php.net/manual/en/function.str-replace.php http://master.php.net/manage/user-notes.php?action=edit+29805 http://master.php.net/manage/user-notes.php?action=delete+29805 http://master.php.net/manage/user-notes.php?action=reject+29805

« previous php.notes (#44510) next »