zip_entry_compressedsize()

It returns the compressed size of a directory entry

Example

<?php
$zp = zip_open(“test.zip”);
while ($zipEntry = zip_read($zp)){
echo “File size -” . zip_entry_compressedsize($zipEntry);
if (zip_entry_open($zp, $zipEntry)){
zip_entry_close($zipEntry);
}
}
zip_close($zp);
?>

Output

File size -103

Share