title: Find a key exists in the sub keys of an array?
body: <p>How can I check if a key exists in the sub keys of an array? And if that key of the item is found then return that item?</p>
  
  <p>For instance, I have this array,</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [a] =&gt; Array
                  (
                      [quantity_request] =&gt; 1
                      [time_created] =&gt; 1339688613
                      [variant] =&gt; Array
                          (
                          )
  
                  )
  
          )
  
      [1] =&gt; Array
          (
              [b] =&gt; Array
                  (
                      [quantity_request] =&gt; 1
                      [time_created] =&gt; 1339688631
                      [variant] =&gt; Array
                          (
                          )
  
                  )
  
          )
  
      [2] =&gt; Array
          (
              [c] =&gt; Array
                  (
                      [quantity_request] =&gt; 1
                      [time_created] =&gt; 1339688959
                      [variant] =&gt; Array
                          (
                          )
  
                  )
  
          )
  
  )
  </code></pre>
  
  <p>I want to find key 'b' and return everything under it, like this is what I am after,</p>
  
  <pre><code>[b] =&gt; Array
                  (
                      [quantity_request] =&gt; 1
                      [time_created] =&gt; 1339688631
                      [variant] =&gt; Array
                          (
                          )
  
                  )
  </code></pre>
  
  <p>I try with this, but nothing returns,</p>
  
  <pre><code>if (array_key_exists('b', $this-&gt;content)) {
                  echo "The 'b' element is in the array";
  
  }
  </code></pre>
  
  <p>Any ideas?</p>