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