Php json decode blank page

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…

Hello, buddy!稿源:Hello, buddy! (源链) | 关于 | 阅读提示

本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » 综合编程 » Php json decode blank page

喜欢 (0)or分享给?

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

使用声明 | 英豪名录