Skip to content
Advertisement

Tag: database-cursor

Properly parse a Mongo cursor to PHP

When converting a MongoCursor to PHP I use this script. Which was presented here StackOverflowSO using the upper method, the structure is same but _id is whereas using the lower script which yields the below included result. Unfortunately, this results in the actual object being embedded into an array with the _id from Mongo. Like this : Since I am

Advertisement