> 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 *believe* (could be wrong) what you want is this: print ${$sql_1}; Check out variable variables in the dox. Chris
- [PHP] Variable naming Kyle Moore
- Re: [PHP] Variable naming Fábio Migliorini
- RE: [PHP] Variable naming Boget, Chris
- RE: [PHP] Variable naming Adam Plocher
- Re: [PHP] Variable naming Kyle Moore
- RE: [PHP] Variable naming Alfredeen, Johan