<?php class helper { static function __callStatic($name, $args) { echo $name.'('.implode(',', $args).')'; } } helper::test("foo","bar"); ?>