Re: [PHP] Variable naming

2001-09-25 Thread Kyle Moore
That was the ticket. Thanks a lot for your help Adam Plocher wrote: > $id = 1; > ${"sql_" . $id} = "hey"; > print $sql_1; -- Kyle Moore UNIX Systems Administrator Trust Company of America -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Variable naming

2001-09-25 Thread Kyle Moore
I want to use the value of a variable in a variable name. For instance: $id = 1; $sql_$id = "hey"; //set variable $sql_1 to hey print $sql_1; //should print hey I have looked high and low on how to do this. My first idea was eval but I can't seem to get that to work in this instance. Any ideas?