dedlfix: Dynamic class

Beitrag lesen

Tach!

$class = '\Application\Modell\'.$table;
I'm not familiar with OOP in PHP, but the doubled backslash looks odd to me. Is that really correct?

Yes, no problem. ' would escape the ', so \ stands for an escaped \ and then ' stands for itself. This is string behavior, has nothing to do with OOP.

dedlfix.