ZipArchive::isCompressionMethodSupported

Check if a compression method is supported by libzip

&reftitle.description; public static `bool` `ZipArchive::isCompressionMethodSupported` `int` `method` `bool` `enc`&true;

Check if a compression method is supported by libzip.

&reftitle.parameters;

`method`

- The compression method, one of the `ZipArchive::CM_*` constants.

`enc`

- If &true; check for compression, else check for decompression.

&reftitle.returnvalues;

&return.success;

&reftitle.notes;

This function is only available if built against libzip ≥ 1.7.0.

&reftitle.seealso;

- `ZipArchive::setCompressionIndex`
- `ZipArchive::setCompressionName`