downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

MongoDB::createDBRef> <MongoDB::__construct
[edit] Last updated: Fri, 18 Sep 2009

view this page in

MongoDB::createCollection

(PECL mongo >=0.9.0)

MongoDB::createCollectionCreates a collection

Описание

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

Параметри

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.

Връщани стойности

Returns a collection object representing the new collection.



add a note add a note User Contributed Notes MongoDB::createCollection
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites