<?php class A { function __invoke($i) { return $i *2; } } $a = new A(); var_dump(is_callable($a));
You have javascript disabled. You will not be able to edit any code.