我有以下数组:
array (size=48)
0 =>
array (size=19)
'type' => string 'house' (length=5)
'name' => string 'House Committee on Agriculture' (length=30)
'url' => string 'http://agriculture.house.gov/' (length=29)
'minority_url' => string 'http://democrats.agriculture.house.gov/' (length=39)
'thomas_id' => string 'HSAG' (length=4)
'house_committee_id' => string 'AG' (length=2)
'subcommittees' => string '' (length=0)
0 =>
array (size=4)
'name' => string 'Conservation and Forestry' (length=25)
'thomas_id' => string '15' (length=2)
'address' => string '1301 LHOB; Washington, DC 20515' (length=31)
'phone' => string '(202) 225-2171' (length=14)
1 =>
array (size=4)
'name' => string 'Commodity Exchanges, Energy, and Credit' (length=39)
'thomas_id' => string '22' (length=2)
'address' => string '1301 LHOB; Washington, DC 20515' (length=31)
'phone' => string '(202) 225-2171' (length=14)
2 =>
array (size=4)
'name' => string 'General Farm Commodities and Risk Management' (length=44)
'thomas_id' => string '16' (length=2)
'address' => string '1301 LHOB; Washington, DC 20515' (length=31)
'phone' => string '(202) 225-2171' (length=14)
3 =>
array (size=4)
'name' => string 'Livestock and Foreign Agriculture' (length=33)
'thomas_id' => string '29' (length=2)
'address' => string '1301 LHOB; Washington, DC 20515' (length=31)
'phone' => string '(202) 225-2171' (length=14)
4 =>
array (size=4)
'name' => string 'Biotechnology, Horticulture, and Research' (length=41)
'thomas_id' => string '14' (length=2)
'address' => string '1301 LHOB; Washington, DC 20515' (length=31)
'phone' => string '(202) 225-2171' (length=14)
5 =>
array (size=4)
'name' => string 'Nutrition' (length=9)
'thomas_id' => string '03' (length=2)
'address' => string '1301 LHOB; Washington, DC 20515' (length=31)
'phone' => string '(202) 225-2171' (length=14)
'address' => string '1301 LHOB; Washington, DC 20515-6001' (length=36)
'phone' => string '(202) 225-2171' (length=14)
'rss_url' => string 'http://agriculture.house.gov/rss.xml' (length=36)
'minority_rss_url' => string 'http://democrats.agriculture.house.gov/Rss.aspx?GroupID=1' (length=57)
'jurisdiction' =>
array (size=3)
0 => string 'policy and oversight of some federal agencies, and it can recommend funding appropriations' (length=90)
1 => string 'for various governmental agencies, programs, and activities, as defined by House' (length=80)
2 => string 'rules.' (length=6)
'jurisdiction_source' => string 'http://en.wikipedia.org/wiki/House_Committee_on_Agriculture' (length=59)
我需要将一些值提取到数组中,subcomittess是一个长度为0的字符串,但在这种情况下有6个块,每个块都是一个数组但是,如何获取子委员会和管辖区的信息?
我一直在研究这个问题几个小时,我找不到解决方案,谢谢你的帮助。
由于
答案 0 :(得分:0)
这6个区块不属于小组委员会。它们是相同数组的值,可以通过其键访问:0,1,2,3,4,5。