开发者

How to access youtube data api json response $t variable in php?

开发者 https://www.devze.com 2023-01-02 21:50 出处:网络
I\'m getting a JSON response from the YouTube Data API. Here is a sample response of the Title variable:

I'm getting a JSON response from the YouTube Data API.

Here is a sample response of the Title variable:

stdClass Object ( [$t] => Video Title )

How do I access the $t variable?

$blah->$t won't work开发者_如何学JAVA because it looks for a variable by $t, and not a member of $blah with name $t.


$blah->{'$t'}

message to avoid SO message length limit ;)

0

精彩评论

暂无评论...
验证码 换一张
取 消