MongoDB::__construct
MongoDB::createDBRef
MongoDB
PHP Manual

# MongoDB::createCollection

(PECL mongo >=0.9.0)

MongoDB::createCollection — Creates a collection

### Descripción

public MongoCollection MongoDB::createCollection ( string `$name` [, bool `$capped`= `FALSE` [, int `$size`= 0 [, int `$max`= 0 ]]] )

### Lista de parámetros

`name`

  The name of the collection.

`capped`

  If the collection should be a fixed size.

`size`

  If the collection is fixed size, its size in bytes.

`max`

  If the collection is fixed size, the maximum number of elements to store in the collection.

### Valores retornados

Returns a collection object representing the new collection.

MongoDB::__construct
MongoDB::createDBRef
MongoDB
PHP Manual