note 98366 deleted from mongocollection.update by danbrown
| From: | danbrown@php.net | Date: | Thu, 10 Jun 2010 21:33:02 +0000 |
| Subject: | note 98366 deleted from mongocollection.update by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-170039@lists.php.net to get a copy of this message | ||
Note Submitter: iroy2000 at gmail dot com
----
In above example, some syntax is not correct
$people->update("birthday" => $today), array('$set' =>
array('gift' => $surprise), array("multiple" => true));
it should be like this
$people->update(
array("birthday" => $today),
array('$set' => array('gift' => $surprise),
array("multiple" => true)
);