Is it possible to dynamically instantiate a class using a variable? For example is something like this possible in PHP?
class foo { public $something; }
That should work, yes.
You can also do:
$f = new $class($arg1,$arg2);