Php/docs/mongoclient.connect
来自菜鸟教程
MongoClient::connect
(PECL mongo >=1.3.0)
MongoClient::connect — 连接到数据库服务器
This extension that defines this method
is deprecated. Instead, the MongoDB extension should be used. There is no equivalent for this method in the new extension.
说明
public MongoClient::connect ( ) : bool
参数
此函数没有参数。
返回值
连接是否成功。