从数组中提取数据的问题

时间:2017-05-29 19:47:37

标签: php arrays

此代码......

_MissingInt

给了我这个数组:

$url = 'https://api.twitter.com/1.1/users/lookup.json';
$getfield = '?screen_name=bvb';
$requestMethod = 'GET';

$twitter = new TwitterAPIExchange($settings);
$response = $twitter->setGetfield($getfield)
    ->buildOauth($url, $requestMethod)
    ->performRequest();

$twitter_array = json_decode($response);

var_dump($twitter_array);

我拼命想把这些数据保存到一些变量中,比如Array ( [0] => stdClass Object ( [id] => 14173315 [id_str] => 14173315 [name] => NBC News [screen_name] => NBCNews [location] => New York, NY [description] => The leading source of global news and information for more than 75 years. Facebook: https://anything Snapchat: https://anything [url] => http://anything [entities] => stdClass Object ( [url] => stdClass Object ( [urls] => Array ( [0] => stdClass Object ( [url] => http://anything [expanded_url] => http://NBCNews.com [display_url] => NBCNews.com [indices] => Array ( [0] => 0 [1] => 22 ) ) ) ) [description] => stdClass Object ( [urls] => Array ( [0] => stdClass Object ( [url] => https://anything [expanded_url] => https://www.facebook.com/NBCNews [display_url] => facebook.com/NBCNews... 没有成功。你能告诉我我在做什么吗?

0 个答案:

没有答案