Fichier CSV de compression PHP

$zip = new ZipArchive();
$filename = "./test1.zip";

if ($zip->open($filename, ZipArchive::CREATE)!==TRUE) {
    exit("cannot open <$filename>\n");
}

$zip->addFile($thisdir . "/file1.csv");
$zip->close();
Cybernated Dev