> Then how would you write an callback containing an already constructed object?
> $a = [$object, 'method'];
>
> The alternative is unnecessarily cumbersome:
> $a = function($methodArg1, $methodArg2) use($object) { return
> $object->method($methodArg1, $methodArg2); };$object->$methodName(...$args); -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
