PHP -Instanzklasse aus String
$class = '\Foo\Bar\MyClass';
$instance = new $class();
Tiago F2
$class = '\Foo\Bar\MyClass';
$instance = new $class();