<?php class bar { function baz() {} static function foo() {} } function foo(callable $bar) { var_dump($bar); } $closure = function () {}; $x = array("bar", "baz"); $x(); foo($x);
You have javascript disabled. You will not be able to edit any code.