String representation of this connection
public __toString ( ) : string | ||
return | string | - Returns hostname and port for this connection. |
public function __toString() { $this->initialize(); return $this->mongo->__toString(); }
<?php $mc = new MongoClient("", array("connect" => false)); var_dump($mc->__toString());