Using the value of a variable as a variable name



Hi there,

Is there a way to use a variable's value as part of a variable's name?

i.e

$var = array();
$var[id] = "somewhere";
$($var[id] . "outthere") = "asd";
//Get above line to translate to: $somewhereoutthere = "asd";

I hope I've explained myself fully, and I hope that this hasn't been
asked before.

Thanks,
TheTeapot

.



Relevant Pages