Hi
I am having issues with the following code and it keeps giving me an error the part I am having issues with is in bold:
[php]
public function AddItem($product_id)
{
if (array_key_exists($product_id , $this->$items))
$this->items[$product_id] = $this->items[$product_id] + 1;
else
$this->items[$product_id] = 1;
}
[/php]