note 8215 added to ereg_replace

From: Date: Thu, 31 Aug 2000 16:21:39 +0000
Subject: note 8215 added to ereg_replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-3787@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 http://www.php.net/manual/function.ereg-replace.php

« previous php.notes (#3787) next »