php8.5
Home/ Manual/ phar / PharFileInfo/ PharFileInfo::hasMetadata

PharFileInfo::hasMetadata

PHP function Edit on GitHub ✎

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

Returns the metadata of the entry

Description

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

Source: reference/phar/PharFileInfo/hasMetadata.xml · from the official PHP manual (php/doc-en)