Phar::isFileFormat

(PHP 5 >= 5.3.0, PHP 7, PECL phar >= 2.0.0)

Phar::isFileFormatReturns true if the phar archive is based on the tar/phar/zip file format depending on the parameter

说明

public Phar::isFileFormat ( int $format ) : bool

参数

format

Either Phar::PHAR, Phar::TAR, or Phar::ZIP to test for the format of the archive.

返回值

Returns TRUE if the phar archive matches the file format requested by the parameter

错误/异常

PharException is thrown if the parameter is an unknown file format specifier.

参见

相关文章
php svn 函数 copies a file or a directory returns true if all is ok false otherwisephp svn 函数 creates a new empty file returns true if all is ok false otherwisephp phar convert a phar archive to a non executable tar or zip filephp phar convert a phar archive to another executable phar archive file formatphp what makes a phar a phar and not a tar or a zip? ingredients of all phar archives independent of file formatphp what makes a phar a phar and not a tar or a zip? phar manifest file entry definitionphp what makes a phar a phar and not a tar or a zip? phar file formatphp what makes a phar a phar and not a tar or a zip? phar signature formatphp what makes a phar a phar and not a tar or a zip? phar file stubphp phar returns phar gz or phar bz2 if the entire phar archive is compressed .tar.gz/tar.bz and so on php phar returns true if the phar archive is based on the tar/phar/zip file format depending on the parameterphp phar returns true if the phar archive can be modifiedphp phardata add a file from the filesystem to the tar/zip archivephp phardata add a file from the filesystem to the tar/zip archivephp phardata convert a phar archive to a non executable tar or zip filephp phardata convert a non executable tar/zip archive to an executable phar archivephp phardata delete a file within a tar/zip archivephp phardata returns true if the tar/zip archive can be modifiedphp phardata remove a file from a tar/zip archivephp pharfileinfo returns the actual size of the file with compression inside the phar archive
关注编程学问公众号