{site_name}

{site_name}

🌜 搜索

PharData::decompressFiles is a PHP funct

php 𝄐 0
php PhantomJS,php Phalanger,php PharData解压tar,phpphp,phpphp爱好者,phpphp教程
PharData::decompressFiles is a PHP function used to decompress files within a Phar archive.

To use PharData::decompressFiles, you need to pass in an array of file names or file globs that you want to decompress.

Here's an example that demonstrates how to use PharData::decompressFiles:

php
<?php
$phar = new PharData('example.tar.gz');
$phar->decompressFiles(['file1.txt', 'file2.txt']);
?>


In this example, the example.tar.gz archive is decompressed and only the files "file1.txt" and "file2.txt" are extracted.