delete from an array
<p>I have an array of objects:</p>

<pre><code>$obj = array();

// add the new items
$row = new stdClass();
$row-&gt;first = $first;
$row-&gt;last = $last;
$row-&gt;phone = $phone;

$obj[] = $row;
</code></pre>

<p>Now, if I only have the value of $last, is there a way to delete the entire $row object without specifying each key/value? 
(If it helps to understand, if it was a mysql statement it would be something like "DELETE * FROM $obj WHERE $row->last = 'Thomas' ")</p>

<p>thx</p>
