ZipArchive::setPassword
(PHP 5 >= 5.6.0, PHP 7, PHP 8, PECL zip >= 1.12.4)
ZipArchive::setPassword — Set the password for the active archive
Description
Sets the password for the active archive.
Parameters
password
-
The password to be used for the archive.
Return Values
Returns true on success or false on failure.