The PHP Online Conference 2021

MongoCollection::__construct

(PECL mongo >=0.9.0)

MongoCollection::__constructCreates 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.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top