将数据插入PHP StdClass对象

时间:2017-12-12 01:49:36

标签: php

我们将数据插入PHP StdClass Object。

但是有重复的重复。

是什么原因?

的print_r($结果)

结果:

stdClass Object ( 
    [0] => stdClass Object ( 
        [_id] => MongoDB\BSON\ObjectId Object ( [oid] => 59e2ff28da721533d277792c ) 
        [title] => "TEST"
    ) 
)

$ result-> {0} - > ww =“C”;

Warning: Creating default object from empty value in /var/www/html/httpapi/all.php on line 61

stdClass Object ( 
    [0] => stdClass Object ( 
        [_id] => MongoDB\BSON\ObjectId Object ( [oid] => 59e2ff28da721533d277792c ) 
        [title] => "TEST" 
    ) 
    [0] => stdClass Object ( [ww] => C )
)

0 个答案:

没有答案