title: PHP get difference of two arrays of objects
body: <p>I know there is <code>array_diff</code> and <code>array_udiff</code> for comparing the difference between two arrays, but how would I do it with two arrays of objects?</p>
  
  <pre><code>array(4) {
      [0]=&gt;
          object(stdClass)#32 (9) {
              ["id"]=&gt;
              string(3) "205"
              ["day_id"]=&gt;
              string(2) "12"
          }
  }
  </code></pre>
  
  <p>My arrays are like this one, I am interested to see the difference of two arrays based on IDs.</p>