AW: PDM Meeting Notes

php.internals

Matthias Pigulla

20 years ago
> Anyway, I see only one use case for interface constructors:
... I also thought about that: $whichClass = ... if ($whichClass instanceof ISomehowConstructable) $foo = new $whichClass(...); would even work without reflection, but of coure would require to change instanceof a little, too - similar to the way is_subclass_of works right now. -mp.