update : 2015.11.03
php.shukuma.com

검색:
 
 
Creates a new collection

MongoCollection::__construct

(PECL mongo >=0.9.0)

MongoCollection::__constructCreates a new collection

설명

public MongoCollection::__construct ( MongoDB $db , string $name )

인수

MongoDB db

Parent database.

name

Name for this collection.

반환값

Returns a new collection object.

오류/예외

Throws default exception if the collection name is invalid.