note 4737 deleted from function.ereg-replace by jimw
| From: | jimw@php.net | Date: | Fri, 02 Nov 2001 01:46:47 +0000 |
| Subject: | note 4737 deleted from function.ereg-replace by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-20178@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'].