public function create($type, $host, $port, $database, $user, $password)
    {
        return new PDO(
            sprintf(
                '%s:host=%s;port=%s;dbname=%s',
                $type,
                $host,
                $port,
                $database
            ),
            $user,
            $password
        );
    }
public function create($type, $host, $port, $database, $user, $password)
    {
        return new PDO(
            sprintf(
                '%s:host=%s;port=%s;dbname=%s',
                $type,
                $host,
                $port,
                $database
            ),
            $user,
            $password
        );
    }
public function create ( $ type , $ host , $ port , $ database , $ user , $ password ) { return new PDO ( sprintf ( '%s:host=%s;port=%s;dbname=%s' , $ type , $ host , $ port , $ database ) , $ user , $ password ) ; }
Create PDO connection.

@param string $type
@param string $host
@param string $port
@param string $database
@param string $user
@param string $password

@return PDO
Create PDO connection .