PHPTS:一键免费搭建 Nginx + PHP + MySQL 运行环境

Mongo::__construct

(PECL mongo >=0.9.0)

Mongo::__constructThe __construct purpose

说明

public Mongo::__construct ([ string $server [, array $options ]] )

This method overwrites the MongoClient constructor and turns off acknowledged writes.

Please see MongoClient::__construct() for description of the parameters.

返回值

Warning

Instanciating this class will emit E_DEPRECATED warning, and turn off acknowledged writes.

Please use the MongoClient instead.