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