(PECL mongo >=0.9.0)
Creates a new collection
public MongoCollection::__construct ( MongoDB $db, string $name )
Parameters:
MongoDB db
Parent database.
Returns:
Returns a new collection object.
Exception:
Throws default exception if the collection name is invalid.
Please login to continue.