Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP zip_entry_compressedsize() Function

PHP zip_entry_compressedsize() Function


PHP Zip File Reference Manual Complete PHP Zip File Reference Manual


Definition and Usage

The zip_entry_compressedsize() function returns the compressed file size of a zip archive entry.

Syntax

zip_entry_compressedsize(zip_entry)

Parameters Description
zip_entry Required. Specifies the zip entry resource to read (the zip entry opened by zip_read()).

Example

"; echo "Name: " . zip_entry_name($zip_entry) . "
"; echo "Compressed Size: " . zip_entry_compressedsize($zip_entry); echo "

"; } zip_close($zip); } ?>

The code above will output:

Name: ziptest.txt

Compressed Size: 56

Name: htmlziptest.html

Compressed Size: 101


PHP Zip File Reference Manual Complete PHP Zip File Reference Manual