开发者

call_user_func_array problems

I have a class with this in

self::$DB = new PDO("mysql:dbname=$dbname;host:=127.0.0.1" , 'root' , '');

and then this

public static function __callStatic($name, $arguments)
{
 return call_user_func_array(array('self::$DB', $name), $arguments);
}开发者_运维百科

How does I make it right/work?


try

return forward_static_call_array(array(self::$DB, $name), $arguments);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜