PHP zip_entry_compressionmethod() Function

zip_entry_compressionmethod — Retrieve the compression method of a directory entry.

string zip_entry_compressionmethod ( resource $zip_entry )

Returns the compression method of the directory entry specified by zip_entry.

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

Example -

PHP Output Screen

File Name: Invoice.txt (deflated)

ParameterDescription
zip_entryA directory entry returned by zip_read().

Return Values-

The compression method.