note 8215 deleted from ereg_replace by zak

From: Date: Thu, 31 Aug 2000 16:48:28 +0000
Subject: note 8215 deleted from ereg_replace by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-3789@lists.php.net to get a copy of this message
Why won't this work? $a = '123'; $b = '456'; $str = "__DB-a__ is less than __DB-b__"; $str2 = ereg_replace("__DB-([A-Za-z0-9.]*)__", ${"\1"}, $str); -- after this $str2 just contains " is less than " .. why will it not evaluate the variable with the parens? Any help is appreciated. Chris

« previous php.notes (#3789) next »