Is there anyway to do variable object names in PHP, the same way you would do variable array names?
For example:
class Schlemiel {
var $aVar = "foo";
}
$schlemazel[5] = "oof";
$schlemiel = new Schlemiel;
$a = "schlemiel";
$b = "schlemazel";
echo "This works: ".${$b}[5];
echo "So does this: ".$schlemiel->aVar;
echo "But this doesn't: ".${$a}->aVar; echo "Nor does this: ".${"schlemiel"}->aVar;
Thanks,
-kristi