It's hard for me to figure out how to build an update request in PHP that will update document identifiers X, Y, and Z. Does anyone have any experience with this?
$ids[] = array( new MongoId('4eaaf929498fe2c80300000c'), new MongoId('4eaaff24498fe2ba0900001f') ); $collection->update( array('_id' => array('$in' => $ids)), array('$set' => array("title"=>"test")), array("upsert" => true) );
source share