Creating a document:
$db->collection->insert($content); // $newDocID = ???
I\'m trying to get the new document\'s id. How? Thanks.
According to the docs the array you pass to insert will be amended with an _id field:
insert
_id
$db->collection->insert($content); $newDocID = $content['_id'];