note 96541 added to function.str-replace

From: Date: Thu, 04 Mar 2010 09:50:55 +0000
Subject: note 96541 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-166644@lists.php.net to get a copy of this message
Wes Foster's function can also be shortened to this: <?php function str_replace_assoc($array,$string){ return str_replace(array_keys($array), array_values($array), $string); } ?> ---- Server IP: 85.214.154.209 Probable Submitter: 213.95.17.99 ---- Manual Page -- http://www.php.net/manual/en/function.str-replace.php Edit -- https://master.php.net/note/edit/96541 Del: integrated -- https://master.php.net/note/delete/96541/integrated Del: useless -- https://master.php.net/note/delete/96541/useless Del: bad code -- https://master.php.net/note/delete/96541/bad+code Del: spam -- https://master.php.net/note/delete/96541/spam Del: non-english -- https://master.php.net/note/delete/96541/non-english Del: in docs -- https://master.php.net/note/delete/96541/in+docs Del: other reasons-- https://master.php.net/note/delete/96541 Reject -- https://master.php.net/note/reject/96541 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#166644) next »