note 97320 deleted from function.str-replace by danbrown

From: Date: Wed, 14 Apr 2010 13:47:36 +0000
Subject: note 97320 deleted from function.str-replace by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-168229@lists.php.net to get a copy of this message
Note Submitter: cpr ---- An alternative to Wes Foster's overdone function: <?php function str_replace_assoc($array, $string) { return str_replace(array_keys($array), $array, $string); }

« previous php.notes (#168229) next »