(
[data] => Array
(
[curnum] => 17
[hasnext] => 1
[info] => Array
(
[0] => Array
(
[city_code] => 13
[country_code] => 1
[fansnum] => 116
[head] => http://app.qlogo.cn/mbloghead/0e6407ec9d1956e94fc4
[https_head] => https://app.qlogo.cn/mbloghead/0e6407ec9d1956e94fc4
[idolnum] => 230
[isfans] => 1
[isidol] => 1
[isrealname] => 1
[isvip] => 0
[location] => 中国 惠州
[name] => ivy543693672
[nick] => ivy
[openid] => 89736E5CF42BE3563CC9344744CEECB6
[province_code] => 44
[sex] => 2
[tag] => Array
(
[0] => Array
(
[id] => 229932304883939539
[name] => 我是新国货
) [1] => Array
(
[id] => 3274154839212534452
[name] => 微博控
) [2] => Array
(
[id] => 3428083006598920604
[name] => 上网
) [3] => Array
(
[id] => 3983359874049164460
[name] => 宅女
) [4] => Array
(
[id] => 12323892526972733886
[name] => 宅
) ) [tweet] => Array
(
[0] => Array
(
[from] => 腾讯微博
[id] => 300280033238513
[text] => 現代年輕人火氣那麼大?每天都那麼大壓力麼?大到要打女人摔嬰兒,大到要發神經報復社會?無論窮人富人,怎麼都如此?如此惡劣事件曾出不窮,道德底線越來越底,我們接受不可思議事件的能力也越來越高 ||#我在看新闻# 北京男子因停车争执当街摔死2岁女婴 孩子正熟睡http://url.cn/GDsZPN
[timestamp] => 1374714209
) ) ) [1] => Array
(
[city_code] => 15
[country_code] => 1
[fansnum] => 128
[head] => http://app.qlogo.cn/mbloghead/36db060f372095fba2da
[https_head] => https://app.qlogo.cn/mbloghead/36db060f372095fba2da
[idolnum] => 314
[isfans] => 1
[isidol] => 1
[isrealname] => 1
[isvip] => 0
[location] => 中国 信阳
[name] => lovesktu
[nick] => 安知晓
[openid] => 18800E960689975B9062331825A6E287
[province_code] => 41
[sex] => 2
[tag] => Array
(
[0] => Array
(
[id] => 3428083006598920604
[name] => 上网
) [1] => Array
(
[id] => 4762518206506141882
[name] => 游戏
) [2] => Array
(
[id] => 7224100491366444876
[name] => 日剧
) [3] => Array
(
[id] => 8280478717592984926
[name] => 美剧
) [4] => Array
(
[id] => 8825088472492676816
[name] => 爱猫
) ) [tweet] => Array
(
[0] => Array
(
[from] => 腾讯微博
[id] => 291580050932630
[text] => 我也喜欢下雨天,呆一个属于自己的空间里.发呆,想些有意思事情.听着窗外雨水拍打地面的声音.静静的呆着. /发呆
[timestamp] => 1374373066
) ) ) [2] => Array
(
[city_code] => 9
[country_code] => 1
[fansnum] => 315
[head] => http://app.qlogo.cn/mbloghead/aa87e47894f5eb7d3ed0
[https_head] => https://app.qlogo.cn/mbloghead/aa87e47894f5eb7d3ed0
[idolnum] => 820
[isfans] => 1
[isidol] => 1
[isrealname] => 1
[isvip] => 0
[location] => 中国 忻州
[name] => wangzhong434346427
[nick] => 王众
[openid] => 8BA58BCDFA65164E0B066EEAA40BA26F
[province_code] => 14
[sex] => 0
[tag] => Array
(
[0] => Array
(
[id] => 77846971042806542
[name] => 旅游
) [1] => Array
(
[id] => 3618043347730980933
[name] => 90后
)
) [tweet] => Array
(
[0] => Array
(
[from] => 腾讯微博
[id] => 291583107006401
[text] => 15525680682
[timestamp] => 1374635187
) ) )
……各位亲,我想获得其中所有nick的值,请问怎么获取???谢谢
[data] => Array
(
[curnum] => 17
[hasnext] => 1
[info] => Array
(
[0] => Array
(
[city_code] => 13
[country_code] => 1
[fansnum] => 116
[head] => http://app.qlogo.cn/mbloghead/0e6407ec9d1956e94fc4
[https_head] => https://app.qlogo.cn/mbloghead/0e6407ec9d1956e94fc4
[idolnum] => 230
[isfans] => 1
[isidol] => 1
[isrealname] => 1
[isvip] => 0
[location] => 中国 惠州
[name] => ivy543693672
[nick] => ivy
[openid] => 89736E5CF42BE3563CC9344744CEECB6
[province_code] => 44
[sex] => 2
[tag] => Array
(
[0] => Array
(
[id] => 229932304883939539
[name] => 我是新国货
) [1] => Array
(
[id] => 3274154839212534452
[name] => 微博控
) [2] => Array
(
[id] => 3428083006598920604
[name] => 上网
) [3] => Array
(
[id] => 3983359874049164460
[name] => 宅女
) [4] => Array
(
[id] => 12323892526972733886
[name] => 宅
) ) [tweet] => Array
(
[0] => Array
(
[from] => 腾讯微博
[id] => 300280033238513
[text] => 現代年輕人火氣那麼大?每天都那麼大壓力麼?大到要打女人摔嬰兒,大到要發神經報復社會?無論窮人富人,怎麼都如此?如此惡劣事件曾出不窮,道德底線越來越底,我們接受不可思議事件的能力也越來越高 ||#我在看新闻# 北京男子因停车争执当街摔死2岁女婴 孩子正熟睡http://url.cn/GDsZPN
[timestamp] => 1374714209
) ) ) [1] => Array
(
[city_code] => 15
[country_code] => 1
[fansnum] => 128
[head] => http://app.qlogo.cn/mbloghead/36db060f372095fba2da
[https_head] => https://app.qlogo.cn/mbloghead/36db060f372095fba2da
[idolnum] => 314
[isfans] => 1
[isidol] => 1
[isrealname] => 1
[isvip] => 0
[location] => 中国 信阳
[name] => lovesktu
[nick] => 安知晓
[openid] => 18800E960689975B9062331825A6E287
[province_code] => 41
[sex] => 2
[tag] => Array
(
[0] => Array
(
[id] => 3428083006598920604
[name] => 上网
) [1] => Array
(
[id] => 4762518206506141882
[name] => 游戏
) [2] => Array
(
[id] => 7224100491366444876
[name] => 日剧
) [3] => Array
(
[id] => 8280478717592984926
[name] => 美剧
) [4] => Array
(
[id] => 8825088472492676816
[name] => 爱猫
) ) [tweet] => Array
(
[0] => Array
(
[from] => 腾讯微博
[id] => 291580050932630
[text] => 我也喜欢下雨天,呆一个属于自己的空间里.发呆,想些有意思事情.听着窗外雨水拍打地面的声音.静静的呆着. /发呆
[timestamp] => 1374373066
) ) ) [2] => Array
(
[city_code] => 9
[country_code] => 1
[fansnum] => 315
[head] => http://app.qlogo.cn/mbloghead/aa87e47894f5eb7d3ed0
[https_head] => https://app.qlogo.cn/mbloghead/aa87e47894f5eb7d3ed0
[idolnum] => 820
[isfans] => 1
[isidol] => 1
[isrealname] => 1
[isvip] => 0
[location] => 中国 忻州
[name] => wangzhong434346427
[nick] => 王众
[openid] => 8BA58BCDFA65164E0B066EEAA40BA26F
[province_code] => 14
[sex] => 0
[tag] => Array
(
[0] => Array
(
[id] => 77846971042806542
[name] => 旅游
) [1] => Array
(
[id] => 3618043347730980933
[name] => 90后
)
) [tweet] => Array
(
[0] => Array
(
[from] => 腾讯微博
[id] => 291583107006401
[text] => 15525680682
[timestamp] => 1374635187
) ) )
……各位亲,我想获得其中所有nick的值,请问怎么获取???谢谢
$nickArray = array();
foreach($array['data']['info'] as $each){
$nickArray[] = $each['nick'];
}
结果:
$nickArray = array(
0 => 'ivy',
1 => '安知晓',
2 => '王众'
)
用户信息:-------------------------------Array
(
)
没有内容 是什么原因?
foreach($cc['data']['info'] as $each){