开发者

call_user_func_array problems

开发者 https://www.devze.com 2023-01-02 19:36 出处:网络
I have a class with this in self::$DB = new PDO(\"mysql:dbname=$dbname;host:=127.0.0.1\" , \'root\' , \'\');

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

精彩评论

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