I am using ZipArchive
to extract files from ZIP.
Here is the code I am using
$zip = new ZipArchive;
$res = $zip->open($file);
if ($res === TRUE) {
$zip->extractTo('test/');
$zip->close();
}
It works fine but the last modified date of extracted files changes to current time.
How I can keep the original last modified date of the extracted files?