Accessing StdClass value with colon :protected

后端 未结 4 849
旧巷少年郎
旧巷少年郎 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:51

    You can't access to a protected property from outside this object. Look at http://www.php.net/manual/en/language.oop5.visibility.php

提交回复
热议问题