dynamic variable names?

From: Date: Wed, 01 Aug 2001 03:25:48 +0000
Subject: dynamic variable names?
Groups: php.general 
Request: Send a blank email to php-general+get-60565@lists.php.net to get a copy of this message
I'll try again... my explanation of my exact problem was not too good last time :P I am working with the following code: $text = "##firstname##"; $text = ereg_replace("##([^#]+)##", $row["\\1"], $text); $row[] is a result of using mysql_fetch_array. I would expect it to replace ##firstname## with the value of $row["firstname"]... but nothing happens. Matthew

« previous php.general (#60565) next »