stdClass Object
(
[kind] => youtube#channelListResponse
[etag] => "Fznwjl6JEQdo1MGvHOGaz_YanRU/AwtUznqL5IWQ_LGBo6hPktZlciI"
[pageInfo] => stdClass Object
(
[totalResults] => 1
[resultsPerPage] => 1
)
[items] => Array
(
[0] => stdClass Object
(
[kind] => youtube#channel
[etag] => "Fznwjl6JEQdo1MGvHOGaz_YanRU/89K2C_1kE4Ku8LvtzDJQlV5_e2I"
[id] => UC-lHJZR3Gqxm24_Vd_AJ5Yw
[snippet] => stdClass Object
(
[title] => PewDiePie
[description] => I make videos.
[publishedAt] => 2010-04-29T10:54:00.000Z
[thumbnails] => stdClass Object
(
[default] => stdClass Object
(
[url] => https://yt3.ggpht.com/a/AGF-l79FVckie4j9WT-4cEW6iu3gPd4GivQf_XNSWg=s88-c-k-c0xffffffff-no-rj-mo
[width] => 88
[height] => 88
)
[medium] => stdClass Object
(
[url] => https://yt3.ggpht.com/a/AGF-l79FVckie4j9WT-4cEW6iu3gPd4GivQf_XNSWg=s240-c-k-c0xffffffff-no-rj-mo
[width] => 240
[height] => 240
我怎样才能得到(例如高stdClass对象的url)的值?
我应该先创建一个数组还是可以直接访问这个值?我不知道如何从另一个对象中获取作为属性的对象的值。
预先感谢!
慕运维8079593