title: php compare/diff an array with an array of objects
body: <p>I have 2 PHP arrays, a simple one:</p>
  
  <pre><code>array
    0 =&gt; int 5
    1 =&gt; int 6
  </code></pre>
  
  <p>and an array of objects:</p>
  
  <pre><code>array
    0 =&gt; 
      object(stdClass)[43]
        public 'id' =&gt; int 1
    1 =&gt; 
      object(stdClass)[46]
        public 'id' =&gt; int 3
    2 =&gt; 
      object(stdClass)[43]
        public 'id' =&gt; int 5
    3 =&gt; 
      object(stdClass)[46]
        public 'id' =&gt; int 6
    4 =&gt; 
      object(stdClass)[46]
        public 'id' =&gt; int 7
  </code></pre>
  
  <p>I'd like to make a diff of these 2 arrays to eliminate in the second those present in the first. In this example, i don't want the ids 5 and 6 in the second array. But i need help ;></p>
  
  <p>Thank you.</p>
  
  <p>fabien</p>