<?php class Foo { public function instanceCall() { return $this; } public function test($c) { return array_map($c, [1]); } } $foo = new Foo(); var_dump($foo->test('Foo::instanceCall'));
You have javascript disabled. You will not be able to edit any code.