<?php class Controller { public function __invoke() { print "Controller was called"; } } $controller = new Controller; if (is_object($controller) && is_callable($controller)) { $controller(); }
You have javascript disabled. You will not be able to edit any code.