MongoDB
PHP Manual

MongoDB::__construct

(PECL mongo >=0.9.0)

MongoDB::__constructCreates a new database

설명

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

인수

Mongo conn

Database connection.

name

Database name.

반환값

Returns the database.

오류/예외

Throws InvalidArgumentException if the database name is invalid.


MongoDB
PHP Manual