note 4737 modified in ereg_replace by ronabop

From: Date: Sat, 26 Aug 2000 05:41:04 +0000
Subject: note 4737 modified in ereg_replace by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-3340@lists.php.net to get a copy of this message
After about an hour of tring different things, I figured out how to replace a string with a entry in an array. You need to use preg_replace but make sure that the array varable is \$array[\\1] and not $array[\\1] or $array['\\1']. http://www.php.net/manual/function.ereg-replace.php

« previous php.notes (#3340) next »