$zip = new ZipArchive(); $zip->open('myzip.zip', ZipArchive::CREATE); $zip->addFile('file1.txt'); $zip->addFile('file2.txt'); echo $zip->getStatusString(); // Outputs "File(s) add to archive." $zip->close();In this example, the getStatusString() method is used to retrieve the status message after adding two files to a ZIP archive. The output will be "File(s) added to archive.". Package Library: The ZipArchive class is a built-in PHP class and does not require any specific package library to use.