MongoCollection
PHP Manual

MongoCollection::update

(PECL mongo >=0.9.0)

MongoCollection::updateUpdate records based on a given criteria

설명

public boolean MongoCollection::update ( array $criteria , array $newobj [, boolean $upsert= FALSE ] )

인수

criteria

Description of the objects to update.

newobj

The object with which to update the matching records.

upsert

If $newobj should be inserted if the criteria is not found.

반환값

Returns if the update was successful.


MongoCollection
PHP Manual