(No version information available, might only be in Git)
A connection between PHP and MongoDB.
This class is used to create and manage connections. A typical use is:
<?php
$m = new Mongo(); // connect
$db = $m->foo; // get the database named "foo"
?>
See Mongo::__construct() and the section on connecting for more information about creating connections.
FALSE
;NULL
;NULL
;$server
= "mongodb://localhost:27017"
[, array $options
= array("connect" => TRUE
)
]] )Mongo::VERSION
Mongo::DEFAULT_HOST
"localhost"
Mongo::DEFAULT_PORT
27017
NULL
.
MongoDB core docs on » connecting.