MongoDB
PHP Manual

MongoDB::__construct

(PECL mongo >=0.9.0)

MongoDB::__constructCreates a new database

Beschreibung

MongoDB::__construct ( Mongo $conn , string $name )

Parameter-Liste

Mongo conn

Database connection.

name

Database name.

Rückgabewerte

Returns the database.

Fehler/Exceptions

Throws InvalidArgumentException if the database name is invalid.


MongoDB
PHP Manual