PHP zip_open() Function
Description
The zip_open() function opens a zip archive for reading.
Syntax
PHP zip_open() Function has the following syntax.
zip_open(filename)
Parameter
Parameter | Is Required | Description |
---|---|---|
filename | Required. | Filename and path of the zip file to open |
Return
This function returns a open zip file resource on success, or FALSE on failure.
Example
Open a zip archive for reading
<?php// ww w .j av a 2s . c om
$zip = zip_open("test.zip");
zip_read($zip);
zip_close($zip);
?>