During the upgrade of PHP 7, the old mongo. so extensions are no longer supported, but only mongodb can be used. so, there are many differences between the two cursor objects. the old version of the cursor object after iteraor_to_array returns an associated array with the _ id as the key. Can the new version only return the number of numeric indexes... during the upgrade of PHP 7, the old mongo. so extensions are no longer supported, but only mongodb can be used. so, there are many differences between the two cursor objects. the old version of the cursor object returns an associated array with _ id as the key after iteraor_to_array. Can the new version only return a numeric index array, is there any solution?
Reply content:
During the upgrade of PHP 7, the old mongo. so extensions are no longer supported, but only mongodb can be used. so, there are many differences between the two cursor objects. the old version of the cursor object returns an associated array with _ id as the key after iteraor_to_array. Can the new version only return a numeric index array, is there any solution?
In useMongoDBDriverBulkWrite ()
ClassInsert
Operation will returnOid = uniq_random_words
. This should be its key.
During the query operation, the queried data will also containOid
This field can be used as the key in the associated array, right ?? I am also learning mongodb. if you verify that this is not what I said, sorry.