ZipArchive::addFile
ZipArchive::addFile
(PHP 5 >= 5.2.0, PHP 7, PECL zip >= 1.1.0)
ZipArchive::addFile — Adds a file to a ZIP archive from the given path
Description
bool ZipArchive::addFile ( string $filename [, string $localname = NULL [, int $start = 0 [, int $length = 0 ]]] )
Adds a file to a ZIP archive from a given path.
Note: For maximum portability, it is recommended to always use forward slashes (/) as directory separator in ZIP filenames.