codecamp

PHP8 ZipArchive::getExternalAttributesName

(PHP 5 >= 5.6.0, PHP 7, PHP 8, PECL zip >= 1.12.4)

ZipArchive::getExternalAttributesName — 检索由其名称定义的条目的外部属性

说明

public ZipArchive::getExternalAttributesName(
string $name,
int &$opsys,
int &$attr,
int $flags = 0
): bool

检索由条目名称定义的条目的外部属性。

参数 

name

条目的名称。

opsys

成功后,接收由 ZipArchive::OPSYS_ 常量之一定义的操作系统代码。

attr

成功后,接收外部属性。值取决于操作系统。

flags

如果 flags 设置为 ZipArchive::FL_UNCHANGED,则原始保持不变 返回属性。

返回值 

成功时返回 true, 或者在失败时返回 false。


PHP8 ZipArchive::getExternalAttributesIndex
PHP8 ZipArchive::getFromIndex
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定