Is something like the following possible in PHP?
$blah = \'foo1\';
class foo2 extends $blah {
//...
}
class foo1 {
//...
}
This g
I don't see how this would be particularly useful, but to answer your question... no. There's no way to dynamically do that because the generated class has to be instantiated before the variable is evaluated (if that makes sense).
To put it simply: The class must exist before the code can be properly executed.