note 95832 deleted from function.str-replace by danbrown

From: Date: Mon, 25 Jan 2010 15:43:51 +0000
Subject: note 95832 deleted from function.str-replace by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-165282@lists.php.net to get a copy of this message
Note Submitter: apocalip at gmail dot com ---- @Wes Foster you don't need the extra function to accomplish something like that. <?php $searchReplace = array( "searchstring" => "replaceString" ); str_replace(array_keys($searchReplace),array_values($searchReplace), $string); ?> Greetings Marc

« previous php.notes (#165282) next »