$_POST["rang"], "promo" => $_POST["promo"], "libelle" => $_POST["libelle"] ]); json_encode(array( "path" => $filePath )); } function delete_document($fileid) { (new Document($fileid))->erase(); }