PharFileInfo::delMetadata() - PharFileInfo类
PharFileInfo::delMetadata()
(PHP 5 >= 5.3.0, PHP 7, PECL phar >= 1.2.0)
Deletes the metadata of the entry
说明
publicPharFileInfo::delMetadata(void): boolDeletes the metadata of the entry, if any.
参数
No parameters.
返回值
Returns TRUE
if successful,FALSE
if the entry had no metadata. As with all functionality that modifies the contents of a phar, the phar.readonly INI variable must be off in order to succeed if the file is within a Phar archive. Files within PharData archives do not have this restriction.
错误/异常
Throws PharException if errors occurred while flushing changes to disk, and BadMethodCallException if write access is disabled.
范例
A PharFileInfo::delMetaData() example
以上例程会输出:
bool(false) bool(true) bool(false)
参见
- PharFileInfo::setMetadata() Sets file-specific meta-data saved with a file
- PharFileInfo::hasMetadata() Returns the metadata of the entry
- PharFileInfo::getMetadata() Returns file-specific meta-data saved with a file
- Phar::setMetadata() Sets phar archive meta-data
- Phar::hasMetadata() Returns whether phar has global meta-data
- Phar::getMetadata() Returns phar archive meta-data
鹏仔微信 15129739599 鹏仔QQ344225443 鹏仔前端 pjxi.com 共享博客 sharedbk.com
图片声明:本站部分配图来自网络。本站只作为美观性配图使用,无任何非法侵犯第三方意图,一切解释权归图片著作权方,本站不承担任何责任。如有恶意碰瓷者,必当奉陪到底严惩不贷!