downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Phar::isValidPharFilename> <Phar::isCompressed
[edit] Last updated: Fri, 25 May 2012

view this page in

Phar::isFileFormat

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

Phar::isFileFormatphar アーカイブが、パラメータで指定した tar/phar/zip のいずれかの形式である場合に true を返す

説明

bool Phar::isFileFormat ( int $format )

パラメータ

format

Phar::PHARPhar::TAR あるいは Phar::ZIP で、アーカイブの形式を指定します。

返り値

phar アーカイブのファイル形式がパラメータで指定したものと一致する場合に TRUE を返します。

エラー / 例外

パラメータで指定した内容が既知の形式でない場合に PharException をスローします。

参考



add a note add a note User Contributed Notes Phar::isFileFormat
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites