Php Youtube API v3-检索频道名称
我需要获得频道名称(标题)的帮助。我想用Php Youtube API v3-检索频道名称,php,json,youtube,Php,Json,Youtube,我需要获得频道名称(标题)的帮助。我想用json\u decode来做,但我不知道怎么做。请帮帮我:)谢谢:) 真诚地说,我更喜欢使用CURL而不是“file\u get\u contents”,它更灵活 关于json_decode,如果您想使用对象,那么就去掉第二个参数。“YES”参数强制将结果作为数组而不是对象 json_decode($json) 如果使用第二个参数,则: $result = json_decode($json,YES) var_dump($result); 您将
json\u decode
来做,但我不知道怎么做。请帮帮我:)谢谢:)
真诚地说,我更喜欢使用CURL而不是“file\u get\u contents”,它更灵活 关于json_decode,如果您想使用对象,那么就去掉第二个参数。“YES”参数强制将结果作为数组而不是对象
json_decode($json)
如果使用第二个参数,则:
$result = json_decode($json,YES)
var_dump($result);
您将看到一个数组。我更喜欢使用CURL而不是“file\u get\u contents”,它更灵活 关于json_decode,如果您想使用对象,那么就去掉第二个参数。“YES”参数强制将结果作为数组而不是对象
json_decode($json)
如果使用第二个参数,则:
$result = json_decode($json,YES)
var_dump($result);
您将看到一个数组