MongoCollection
PHP Manual

MongoCollection::insert

(PECL mongo >=0.9.0)

MongoCollection::insertInserts an array into the collection

Description

public boolean MongoCollection::insert ( array $a )

Parameters

a

An array.

Return Values

Returns if the array was not empty (an empty array will not be inserted).


MongoCollection
PHP Manual