MongoDB
PHP Manual

MongoDB::__construct

(PECL mongo >=0.9.0)

MongoDB::__constructCreates a new database

Açıklama

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

Değiştirgeler

Mongo conn

Database connection.

name

Database name.

Dönen Değerler

Returns the database.

Hatalar/İstisnalar

Throws InvalidArgumentException if the database name is invalid.


MongoDB
PHP Manual