All pastes #468864 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-03 12:39 UTC
rendered paste body

<?
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
}
?>