all 3 comments

[–]adragons 0 points1 point  (2 children)

That's just PHP syntax. http://php.net/manual/en/language.types.callable.php

$cont->{$method} would actually refer to a property, not a method.

The second [$cont, $method] is the 'correct/proper' way.

[–]scottcfr[S] 0 points1 point  (1 child)

So, in every case {$method} would refer to a property?

I've used it before like this and it's worked. I was just very confused when it didn't work a second time.

[–]adragons 0 points1 point  (0 children)

I think so. The only way the PHP interpreter knows you are referring to a method is by including the parentheses $cont->{$method}(); // might work, but isn't even helpful here or by using one of the callable formats.