preg_replace update
| From: | daniel | Date: | Fri, 11 Apr 2003 01:24:41 +0000 |
| Subject: | preg_replace update | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-143419@lists.php.net to get a copy of this message | ||
ok guys sorry i've prob asked this question too many times, i'm trying to
replace the eregi_replace with preg_replace but my syntax is wrong
$replaced_content = preg_replace("/\[f$key\f\]/i",$value,$replaced_content);
this doesnt seem to work where
this does
$replaced = eregi_replace("\[f$key\f\]","$value",$replaced);
any ideas ?