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)?
我应该首先创建一个数组,还是可以直接访问此值?我不知道如何从另一个对象获取属性对象的值。
提前致谢!
慕姐4208626