title: Search array and return all keys and values when match found
body: <p>I like to perform a search on an array and return all values when a match is found. The key <code>[name]</code> in the array is what I am doing a search on.</p>
  
  <pre><code>Array (
  [0] =&gt; Array
      (
          [id] =&gt; 20120100
          [link] =&gt; www.janedoe.com
          [name] =&gt; Jane Doe
      )
  [1] =&gt; Array
      (
          [id] =&gt; 20120101
          [link] =&gt; www.johndoe.com
          [name] =&gt; John Doe
      )
  )
  </code></pre>
  
  <p>If I did a search for <strong>John Doe</strong> it would return. </p>
  
  <pre><code>Array
  (
      [id] =&gt; 20120101
      [link] =&gt; www.johndoe.com
      [name] =&gt; John Doe
  )
  </code></pre>
  
  <p>Would it be easier to rename the arrays based on what I am searching for. Instead of the above array I can also generate the following.</p>
  
  <pre><code>Array (
  [Jane Doe] =&gt; Array
      (
          [id] =&gt; 20120100
          [link] =&gt; www.janedoe.com
          [name] =&gt; Jane Doe
      )
  [John Doe] =&gt; Array
      (
          [id] =&gt; 20120101
          [link] =&gt; www.johndoe.com
          [name] =&gt; John Doe
      )
  )
  </code></pre>