Mongo
PHP Manual

Mongo::connect

(PECL mongo >=0.9.0)

Mongo::connectConnects to a database server

说明

public bool Mongo::connect ( void )

参数

此函数没有参数。

返回值

If the connection was successful.

错误/异常

Throws MongoConnectionException if it fails to connect to the database.


Mongo
PHP Manual