MongoCollection
PHP Manual

MongoCollection::save

(PECL mongo >=0.9.0)

MongoCollection::saveSaves an object to this collection

Description

public boolean MongoCollection::save ( array $a )

If the object is from the database, update the existing database object, otherwise insert this object.

Parameters

a

Array to save.

Return Values

Returns if the object was saved.


MongoCollection
PHP Manual