Can somebody please tell me where/what I'm doing it wrong and how the conversion should take place? I'm new to PHP and MongoDB so please excuse my naivety...
This is my document in mongo:
{ "_id" : "x", "links" : [1,2,3] }
In PHP, I do this:
foreach($cur as $obj)
echo $obj['_id'] . "-->" . $obj['links']
My output is:
x-->Array
instead of this:
x-->1,2,3
Thanks in advance!