title: In php is there a function like array_column for multidimensional arrays
body: <p>Is there function that works similar to <code>array_column</code> for multidimensional arrays?  Is there a function that translates the first array below to the second:</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [foodType] =&gt; fruits
              [itemID] =&gt; 1
              [itemName] =&gt; apple
          )
  
      [1] =&gt; Array
          (
              [foodType] =&gt; fruits
              [itemID] =&gt; 2
              [itemName] =&gt; banana
          )
  
      [2] =&gt; Array
          (
              [foodType] =&gt; veggies
              [itemID] =&gt; 3
              [itemName] =&gt; carrot
          )
  
      [3] =&gt; Array
          (
              [foodType] =&gt; veggies
              [itemID] =&gt; 4
              [itemName] =&gt; broccoli
           )
  
  )
  </code></pre>
  
  <p>Resulting array:</p>
  
  <pre><code>Array
  (
      [fruits] =&gt; Array
          (
              [0] =&gt; Array
                  (
                      [itemID] =&gt; 1
                      [itemName] =&gt; apple
                  )
  
              [1] =&gt; Array
                  (
                      [itemID] =&gt; 2
                      [itemName] =&gt; banana
                  )
  
          )
  
      [veggies] =&gt; Array
          (
              [0] =&gt; Array
                  (
                      [itemID] =&gt; 3
                      [itemName] =&gt; carrot
                  )
  
              [1] =&gt; Array
                  (
                      [itemID] =&gt; 4
                      [itemName] =&gt; broccoli
                   )
          )
  
  )
  </code></pre>