MongoCollection::__get
Gets a collection
&reftitle.description;
public MongoCollectionMongoCollection::__get
stringname
A concise syntax for getting a collection with a dot-separated name. If a
collection name contains strange characters, you may have to use
MongoDB::selectCollection instead.
selectDB("foo")->selectCollection("bar.baz");
$collection = $mongo->foo->bar->baz;
?>
]]>
&reftitle.parameters;
name
The next string in the collection name.
&reftitle.returnvalues;
Returns the collection.