$_POST["id"], "libelle" => $_POST["libelle"] ]); } function alter_promo($promoid) { $promo = new Promo($promoid); $promo->setLibelle($_POST["libelle"]); $promo->write(); } function delete_promo($promoid) { (new Promo($promoid))->erase(); }