Php json decode blank page

综合编程 Hello, buddy! (源链)

Hello I want to decode json. My code below:

{'response'}->{'items'}->{'files'}->{'mp4_240'};

But I get a blank page

print_r
should actually print something – your json is correct.

You should do it like this:

print $obj->response->items[0]->files->mp4_240;

Here’s a code working on ideone: http://ideone.com/4xXfOl

EDIT: Please whoever downvoted these answers, explain why you do so in comments…

您可能感兴趣的

Is it possible to let a user modify elements of an... Say a user was viewing a webpage with some content like some text Is there any way to allow them to change the contents to new text and commit...
PHP 进阶之路 – 亿级 pv 网站架构实战之性能压榨... 你好!看起来你挺喜欢这个内容,但是你还没有注册帐号。 当你创建了帐号,我们能准确地追踪你关注的问题,在有新答案或内容的时候收到网页和邮件通知。 还能直接向作者咨询更多细节。如果上面的内容有帮助,记得点赞 (♥◠‿◠)ノ 表示感谢。...
Strange characters in PHP Strange characters in php from remote json file I know this question is all over the place , and ive been searching for hours no...
Is escaping this PHP function dangerous? If I escape data with addcslashes($input,chr(0x00) . chr(0x0d) . chr(0x0a) . chr(0x1a) . chr(0x5c) . chr(0x27) . chr(0x22)); would that be enough ...
Mison: A Fast JSON Parser for Data Analytics The growing popularity of the JSON format has fueled increased interest in loading and processing JSON data within analytical data processing systems....
Hello, buddy!责编内容来自:Hello, buddy! (源链) | 更多关于

阅读提示:酷辣虫无法对本内容的真实性提供任何保证,请自行验证并承担相关的风险与后果!
本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » Php json decode blank page



专业 x 专注 x 聚合 x 分享 CC BY-NC-SA 4.0

使用声明 | 英豪名录