From the MongoDB command line I can do
db.user.update({userid: {$in: [435707147,88513850,466518582]}},{$unset: {f1 : 1}})
Which will remove the variable f1 from all user objects in the DB. How would you translate that to PHP syntax?
I the following runs with no error, but no changes are made to the DB.
$db->user->update(array("userid"=>array('$in'=>$ids)),
array('$unset'=> array("f1"=>1)));