php-返射代理
target[] = new $targetclass(); } function __call($name, $args) { foreach ($this->target as $obj) { $r = new reflectionclass($obj); if ($method = $r->getmethod($name)) { if ($method->ispublic() && !$method->isabstract()) { return call_user_func_array(array(&$obj, $name), $args); } } } } } $stu = new classdelegator('student'); $stu->dowork('1111', 'rerew');
?
