php-general | 2001072

[PHP] dynamic variable names? From: Matthew Delmarter (matt <email protected>)
Date: 07/31/01

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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>