Get image url from twitter api entity parameter php

社会主义新天地 提交于 2019-12-05 06:31:28

$result->entities->media-> this is an array as seen in structure... try using

$media_url = $result->entities->media[0]->media_url;
Linus Gudn Jokela
$results = json_decode($results);

I think that's much easier to see how to select items when you decode json objects :)

Try that next time :)

I could very well be wrong but I believe you need [] before and after numbers in if statements.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!