Actually, there is no statement in PHP that can return data from
MongoDB as object (CMIIW). Data are returned as array.
You can convert this array to object using (object).
Look an example at
http://www.richardcastera.com/blog/php-convert-array-to-object-with-stdclass
$posts = (object) $mongo->fin
hi all,
Is anybody aware of mysql_fetch_object() equivalent/similar implementation
for mongoDB?
we are looking for the most efficient way to store and load a php object
with mongoDB. really appreciate if you can share your experience on this.
thanks..
~Chamila Gayan
2 matches
Mail list logo