PHP-Handbuch Funktionsreferenz Datenbankerweiterungen Anbieterspezifische Datenbankerweiterungen Mongo Core Classes MongoCollection MongoCollection::__construct MongoCollection::batchInsert MongoCollection::count MongoCollection::__construct (PECL mongo >=0.9.0)MongoCollection::__construct — Creates a new collection Beschreibung public MongoCollection::__construct ( MongoDB $db , string $name ) Parameter-Liste MongoDB db Parent database. name Name for this collection. Rückgabewerte Returns a new collection object. Fehler/Exceptions Throws default exception if the collection name is invalid.