__toString() public method

String representation of this connection
public __toString ( ) : string
return string - Returns hostname and port for this connection.
コード例 #1
0
ファイル: Connection.php プロジェクト: frogriotcom/brusite
 public function __toString()
 {
     $this->initialize();
     return $this->mongo->__toString();
 }
コード例 #2
0
ファイル: bug00850.php プロジェクト: badlamer/hhvm
<?php

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