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);
精彩评论