mongodb+php通过_id查询

在php中通过_id 在mongodb中查找特定记录:

         查询条件需要这样写:array("_id"=>new MongoId("$id"))

你可能感兴趣的:(mongodb+php通过_id查询)