Re: note 8215 added to ereg_replace

From: Date: Thu, 31 Aug 2000 16:49:24 +0000
Subject: Re: note 8215 added to ereg_replace
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-3790@lists.php.net to get a copy of this message
Dear Chris, The manual notes are not the place for asking support questions. Before posting another note, please make sure to read the instructions at http://www.php.net/manual/add-note.php I would recommend that you ask your question on the php-general mailing list. You can subscribe to this list by sending mail to php-general-subscribe@lists.php.net. Good Luck! - Zak At 04:21 PM 8/31/00 +0000, chris@mytrp.com wrote:
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 -- PHP Notes Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-notes-unsubscribe@lists.php.net For additional commands, e-mail: php-notes-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.notes (#3790) next »