MongoClient
PHP Manual

MongoClient::__toString

(PECL mongoclient >=0.9.0)

MongoClient::__toStringString representation of this connection

说明

public string MongoClient::__toString ( void )

参数

此函数没有参数。

返回值

Returns hostname and port for this connection.


MongoClient
PHP Manual