removing objects from an object array in php?
<p>for example say i have an object array called $list looks like this:</p>

<pre><code>&lt;(stdClass)#16 (3) {
  ["1"]=&gt;
  &lt;(8) "50504496"
  ["2"]=&gt;
  &lt;(8) "12435374"
  ["3"]=&gt;
  &lt;(8) "12436374"
</code></pre>

<p>Im doing a foreach on the object array and removing them if they exist in the database i.e</p>

<pre><code>   foreach($list as $l){

    //do the query

    if( it exists){
      //remove from objects: this is where i need help!!
      }
   }
</code></pre>

<p>i have the db logic, im just stuck to know how i can remove objects, i was thinking maybe i should create a new object and add them thier. thanks
    }</p>
