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.
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.
本文地址:
/show-284072.html
版权声明:除非特别标注原创,其它均来自互联网,转载时请以链接形式注明文章出处。