如何使MongoDB查询结果只以value列表的形式返回?
PHP中文网
PHP中文网 2017-04-24 09:12:05
0
2
573

可不可以不显示key

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
巴扎黑

Json is originally unordered and requires a key to identify its ownership. If there is no key, the ownership of the value cannot be determined, so such a function will not appear again.
It is more appropriate to meet your needs on the business side.

小葫芦

There should be none. In fact, this will not have much impact on your program. Just take the value.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!