PHP zip_read() Function

Description

The zip_read() function reads the next file in a open zip archive.

Syntax

PHP zip_read() Function has the following syntax.

zip_read(zip)

Parameter

ParameterIs RequiredDescription
zipRequired.Zip resource to read (a zip file opened with zip_open() )

Return

This function returns a resource containing a file within the zip archive on success, or FALSE if there is no more entries to read.

Example

Read the next file in a open zip archive


<?php//from w  w w. j a v  a  2 s.c o m
$zip = zip_open("test.zip");
zip_read($zip);
zip_close($zip);
?>




















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions