I already have one way of doing it, but its long and tedious and I need lots of variables like it. This is the way I do it:
// $zero is extracted from the database earlier in the script, that works fine
$zerob = "$";
$zerob .= $zero;
eval ("\$zerob = \"$zerob\";");
$zero2 = $zerob;
I want one of those, but shorter, and so it would be $[$zero]stat, so if $zero was "foo", then it would be $foostat. And I could set/view that variable.