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

PHP zip_entry_compressionmethod() Function

PHP zip_entry_compressionmethod() Function


PHP Zip File Reference Manual Complete PHP Zip File Reference Manual


Definition and Usage

The zip_entry_compressionmethod() function returns the compression method of a zip archive entry.

Syntax

zip_entry_compressionmethod(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 "Compression Method: " . zip_entry_compressionmethod($zip_entry); echo "

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

The code above will output:

Name: ziptest.txt

Compression Method: deflated

Name: htmlziptest.html

Compression Method: deflated


PHP Zip File Reference Manual Complete PHP Zip File Reference Manual