PHP 8.3.4 Released!

Phar::isFileFormat

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

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

説明

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

パラメータ

format

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

戻り値

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

エラー / 例外

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

参考

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top