public static function connect($mysqlConfig)
    {
        $dbConfig = array(
            'dsn' => 'mysql:dbname=' . $mysqlConfig['dbname'] . ';host=' . $mysqlConfig['host'],
            'user' => $mysqlConfig['user'],
            'pass' => $mysqlConfig['pass'],
            'options' => array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"),
        );

        return parent::connect($dbConfig);
    }
public static function connect($mysqlConfig)
    {
        $dbConfig = array(
            'dsn' => 'mysql:dbname=' . $mysqlConfig['dbname'] . ';host=' . $mysqlConfig['host'],
            'user' => $mysqlConfig['user'],
            'pass' => $mysqlConfig['pass'],
            'options' => array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"),
        );

        return parent::connect($dbConfig);
    }
public static function connect ( $ mysqlConfig ) { $ dbConfig = array ( 'dsn' => 'mysql:dbname=' . $ mysqlConfig [ 'dbname' ] . ';host=' . $ mysqlConfig [ 'host' ] , 'user' => $ mysqlConfig [ 'user' ] , 'pass' => $ mysqlConfig [ 'pass' ] , 'options' => array ( PDO :: MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8" ) , ) ; return parent :: connect ( $ dbConfig ) ; }
Returns a PDO instance
@param array $mysqlConfig
@return PDO
Returns a PDO instance