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: $somewhereoutth ere = "asd";
I hope I've explained myself fully, and I hope that this hasn't been
asked before.
Thanks,
TheTeapot
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: $somewhereoutth ere = "asd";
I hope I've explained myself fully, and I hope that this hasn't been
asked before.
Thanks,
TheTeapot
Comment