Is it possible to dynamically instantiate a class using a variable? For example is something like this possible in PHP?
class foo { public $something; }
Yes, this code will work fine.