Unset an array element inside a foreach loop
<p>I'm accessing an array by reference inside a foreach loop, but the unset() function doesn't seem to be working:</p>

<pre><code>foreach ( $this-&gt;result['list'] as &amp;$row ) {

  if ($this_row_is_boring) {

    unset($row);

  }

}

print_r($this-&gt;result['list']); // Includes rows I thought I unset
</code></pre>

<p>Ideas?  Thanks!</p>
