title: searching within all keys in a multidimensional array PHP
body: <p>I want to search all keys within a multidimensional array for a specific string. I just need to work out if its present, nothing more. I want to know if an IP of a visitor is present within any of the arrays.</p>
  
  <p>Is there a php function or method I can use to do this, each one I've tried always returns false. (in_array, array_search, array_filter)</p>
  
  <p>I was hoping to avoid looping through each key and set of values. </p>
  
  <p><em>Example Array</em></p>
  
  <pre><code>Array
  (
      [21] =&gt; Array
          (
              [click_id] =&gt; 21
              [ip_addr] =&gt; 109.148.183.1
              [dtime] =&gt; 2011-04-28 17:56:57
              [url_id] =&gt; 11
          )
  
      [22] =&gt; Array
          (
              [click_id] =&gt; 22
              [ip_addr] =&gt; 109.148.183.1
              [dtime] =&gt; 2011-04-28 17:57:05
              [url_id] =&gt; 12
          )
  
      [23] =&gt; Array
          (
              [click_id] =&gt; 23
              [ip_addr] =&gt; 109.148.183.1
              [dtime] =&gt; 2011-04-28 18:42:42
              [url_id] =&gt; 10
          )
  )
  </code></pre>
  
  <p>Thanks</p>