Accessing StdClass value with colon :protected

后端 未结 4 896
旧巷少年郎
旧巷少年郎 2021-01-26 03:11

How do I access the value of stdClass with colon \":protected\"?

For example, I had this $obj with these result :

object(Google_Service_Plus_PeopleFeed)         


        
4条回答
  •  粉色の甜心
    2021-01-26 03:47

    Well, I can finally access it with :

    $kind = $obj['data']['items'][0]['kinds'];
    

    Anybody can explain why? Just curious why it needs to be protected >.<

提交回复
热议问题