Hi,
$class = '\Application\Modell\'.$table;
I'm not familiar with OOP in PHP, but the doubled backslash looks odd to me. Is that really correct? To my knowledge, it would be masking the following single quote mark, thus produce a syntax error.
No, just using ' here would cause an error, because using that .$table; would be part of the text literal as well – which n turn would thereby remain unterminated.
\ is correct, because a pure backslash is meant here – and it has to be quoted to take away it’s special meaning of quoting the ' it would otherwise have if it was only one backslash.
MfG ChrisB
--
RGB is totally confusing - I mean, at least #C0FFEE should be brown, right?
RGB is totally confusing - I mean, at least #C0FFEE should be brown, right?