title: Search through an php array
body: <p>I have an array like this one.</p>
  
  <pre><code>$array = Array(
          [0] =&gt; Array
              (
                  [name] =&gt; Eve Greenhaw
                  [id] =&gt; 456564765
              )
  
          [1] =&gt; Array
              (
                  [name] =&gt; Tyrone Hallberg
                  [id] =&gt; 5467652534
              )
  
          [2] =&gt; Array
              (
                  [name] =&gt; Julio Torbert
                  [id] =&gt; 254564564
              )
  
          [3] =&gt; Array
              (
                  [name] =&gt; John Torbert
                  [id] =&gt; 5462253455
              )
  
          [4] =&gt; Array
              (
                  [name] =&gt; John Kimmell
                  [id] =&gt; 4525462
              )
  
      )
  </code></pre>
  
  <p>I want to search through the array and return the name and id. For example if the user searches for 'John', I wants the function to return keys 3, and 4. If the user searches for just 'J', the function should return keys 2,3 and 4.</p>
  
  <p>Thanks</p>