Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
<?PHP
class basket {
var $items;
var $qtys;
function add($sku, $qty) {
$this->qtys[$sku] += $qty;
}
function insert($sku, $name) {
$this->items[$sku] = $name;
$this->qtys[$sku] = 1;
}
}
$mybasket = new basket;
$mybasket->insert("101", "PHP - Lösungen");
echo "Vom Artikel ".$mybasket->items["101"];
echo " sind ".$mybasket->qtys["101"]." Stück da.";
?>