__toString() public method

String representation of this connection
public __toString ( ) : string
return string - Returns hostname and port for this connection.
Exemplo n.º 1
0
 public function __toString()
 {
     $this->initialize();
     return $this->mongo->__toString();
 }
Exemplo n.º 2
0
<?php

$mc = new MongoClient("", array("connect" => false));
var_dump($mc->__toString());