The problem I'm encountering is someone else
mongodb
storing the picture information in
key
, for
img
,
value
an
url
array.
When I use
php
an
mongodb
extension to query, the
img
field returns a string, but what I want to get is the array object that was deposited, what method can I get to an object of an array type?
My query is using
MongoCursor::find()
this API. NoSQL database I was also the first time to use ╮ (╯-╰) ╭.
Reply content:
The problem I'm encountering is someone else mongodb
storing the picture information in key
, for img
, value
an url
array.
When I use php
an mongodb
extension to query, the img
field returns a string, but what I want to get is the array object that was deposited, what method can I get to an object of an array type?
My query is using MongoCursor::find()
this API. NoSQL database I was also the first time to use ╮ (╯-╰) ╭.
I didn't use it.过可以试下 存的时候 json_encode(), 取出来后在json_decode()