我的一门课中有这段代码
public function __call($method, $args) {
array_unshift($args, $method);
call_user_method_array('view', $this, $args);
}
我们已经切换了服务器,他们必须使用更新版本的 PHP5,我收到以下消息
Function call_user_method_array() is deprecated
我应该在哪里使用反射?它到底是什么,我将如何使用它来修改我上面的代码以像以前一样工作?