__toString() public method

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

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