标签:mongodb-php
-
php json_encode不会导致真实对象/将数组字符串转换为真实对象/将php数组转换为json - php
这是我的PHP代码,它从mongodb获取列表集合 $list = $db->dbname->listCollections(); $result = array(); $i=0; foreach ($list as $thiscollection) { $result[$i++] = $thiscollection->getName(); […]