It returns the compression method of a directory entry
Example
<?php
$zp = zip_open(“test.zip”);
while ($zipEntry = zip_read($zp)){
echo “Compression Method -” . zip_entry_compressionmethod($zipEntry);
if (zip_entry_open($zp, $zipEntry)){
zip_entry_close($zipEntry);
}
}
zip_close($zp);
?>
Output
Compression Method -deflated