MongoDB::__get
Gets a collection
&reftitle.description;
public MongoCollectionMongoDB::__get
stringname
This is the easiest way of getting a collection from a database object. If a
collection name contains strange characters, you may have to use
MongoDB::selectCollection instead.
selectDB("foo")->selectCollection("bar");
$collection = $mongo->foo->bar;
?>
]]>
&reftitle.parameters;
name
The name of the collection.
&reftitle.returnvalues;
Returns the collection.