提取数组php中两列之间的信息


Extract info between two columns in array php

我有以下数组:

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)

有一些值我需要提取到一个数组中,subcommissions是一个长度为0的字符串,但在这种情况下有6个块,每个块都是一个数组,但是,我如何获得子commissions和管辖权的信息?

我已经为此工作了几个小时,但我找不到解决方案,我很感激你的帮助。

感谢

这6个块不是子许可证的一部分。它们是同一数组的值,可以通过它们的键访问:0、1、2、3、4、5。