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