function Zip(what, zipArchive)


The Zip function creates a compressed archive with the files that are passed to it in the what argument. Supports wildcards. If the destination zip archive already exists it will be overwritten and replaced.


Example:

{
 Zip('./documents/*.docx', './archives/dox.zip');
}