Stuff
public text v1 · immutable
<?
class Winkelwagen {
public $products = array(); // Array met straks getalletjes
public function addProduct($id,$name) { $this->products[$id] = $name; } // Product op eerst vrije plaats ([]) toevoegen
public function getProducts() { return $this->products; } // Gewoon productenarray teruggeven
}
?>