If you want to create a class which objects are callable (in PHP 5.3), than you need to defined __invoke magic method in your class, e.g.
<?php class MyClass { public function __invoke($x) { var_dump($x); } } $myObject = new MyClass(); $myObject(2); // output: init(2) ?>