W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗值獎勵
(PHP >= 7.2.0, PHP 8, PECL zip >= 1.14.0)
ZipArchive::setEncryptionIndex — 設(shè)置由其索引定義的條目的加密方法
public ZipArchive::setEncryptionIndex(int $index, int $method, ?string $password = null): bool
設(shè)置由其索引定義的條目的加密方法。
index
條目的索引。
method
由 ZipArchive::EM_ 常量之一定義的加密方法。
password
可選密碼,缺失時默認(rèn)使用。
成功時返回 true, 或者在失敗時返回 false。
版本 | 說明 |
---|---|
8.0.0 | password 現(xiàn)在是可為 null 的。 |
注意:僅當(dāng)針對 libzip ≥ 1.2.0 構(gòu)建時,此函數(shù)才可用。
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: