Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<PharFileInfo::getPharFlagsPharFileInfo::isCRCChecked>
^PharFileInfoLast updated: Mon, 26 Oct 2026

PharFileInfo::hasMetadata

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

PharFileInfo::hasMetadata — Returns the metadata of the entry

Description

public function PharFileInfo::hasMetadata(): bool

Returns the metadata of a file within a phar archive.

Parameters

No parameters.

Return Values

Returns false if no metadata is set or is null, true if metadata is not null

See Also


<PharFileInfo::getPharFlagsPharFileInfo::isCRCChecked>
^PharFileInfoLast updated: Mon, 26 Oct 2026