Let's assume we have this function
<?php function run($callback) { $callback($some, $params); } How to call it?
run($someObject->callback); or rather
run([$someObject, 'callback']); The first one seems better to me especially because of code suggestion but in documentation is used array notation.
Why is first one worse than second one?