note 116256 added to class.mongoupdatebatch
| From: | k4ndar at yahoo dot com | Date: | Tue, 02 Dec 2014 07:45:59 +0000 |
| Subject: | note 116256 added to class.mongoupdatebatch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-201048@lists.php.net to get a copy of this message | ||
Complete example:
<?php
$mc = new MongoClient('localhost');
$collection = $mc->selectCollection('blog', 'users');
$update = array(
'q' => array('foo' => 'bar'),
'u' => array('$set' => array('foo' => 'baz')),
'multi' => false,
'upsert' => false,
);
$batch = new MongoUpdateBatch($collection);
$batch->add((object) $update);
$batch->execute();
----
Server IP: 72.52.91.14
Probable Submitter: 203.190.247.106
----
Manual Page -- http://php.net/manual/en/class.mongoupdatebatch.php
Edit -- https://master.php.net/note/edit/116256
Del: integrated -- https://master.php.net/note/delete/116256/integrated
Del: useless -- https://master.php.net/note/delete/116256/useless
Del: bad code -- https://master.php.net/note/delete/116256/bad+code
Del: spam -- https://master.php.net/note/delete/116256/spam
Del: non-english -- https://master.php.net/note/delete/116256/non-english
Del: in docs -- https://master.php.net/note/delete/116256/in+docs
Del: other reasons-- https://master.php.net/note/delete/116256
Reject -- https://master.php.net/note/reject/116256
Search -- https://master.php.net/manage/user-notes.php