Mongo
PHP Manual

Mongo::__toString

(PECL mongo >=0.9.0)

Mongo::__toStringString representation of this connection

Description

public string Mongo::__toString ( void )

Parameters

This function has no parameters.

Return Values

Returns hostname and port for this connection.


Mongo
PHP Manual