php8.5
Home/ Manual/ phar / Phar/ Phar::getSupportedCompression

Phar::getSupportedCompression

PHP function Edit on GitHub ✎

(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 1.2.0)

Return array of supported compression algorithms

Description

Phar::getSupportedCompression(): array

Parameters

No parameters.

Return Values

Returns an array containing any of Phar::GZ or Phar::BZ2, depending on the availability of the zlib extension or the bz2 extension.

See Also

Source: reference/phar/Phar/getSupportedCompression.xml · from the official PHP manual (php/doc-en)