unsetting a variable
<p>I have some code here wich looks as following:</p>

<pre><code>if (isset($_SESSION['addToCart'])) {
    foreach ($_SESSION["addToCart"] as &amp;$value){
        if ($value['titel'] == $titel){ 
            $value['aantal'] = $aantal;
            if($value['aantal'] == 0){
                unset($value);
            }
        }
    }
}
</code></pre>

<p>so when 'aantal' = 0, i want to delete that record, but it doesnt it just gives back the result and 'aantal' is 0 instead of the record being removed from the session.
Anyone know what i'm doing wrong?</p>
