> 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

Reply via email to