title: Search in array query result in php/mysql
body: <p>I have the mysql results (<code>$date_options</code>) as below</p>
  
  <pre><code>Array (
      [0] =&gt; stdClass Object (
          [id] =&gt; 4
          [start_date] =&gt; 2010-09-29
      )
      [1] =&gt; stdClass Object (
          [id] =&gt; 13
          [start_date] =&gt; 2010-10-06
      )
  )
  </code></pre>
  
  <p>I need to be able to search in the "id" field if some value existed. I tried this and it didn't work:</p>
  
  <pre><code>array_search($event_id, $date_options, true)
  </code></pre>
  
  <p><code>$event_id</code> is has the id value. I only want to look in id and not in start_date</p>
  
  <p>How to solve this?</p>
  
  <p>Thanks</p>