Current Location: Home> Function Categories> zip_read

zip_read

Read the next item in the ZIP file.
Name:zip_read
Category:Uncategorized
Programming Language:php
One-line Description:Read the next item in the ZIP file.

Definition and usage

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

If successful, return the resource containing a file in the zip file. Returns false if there are no more items available for reading.

Tip: The resources returned by zip_read() function are available for functions of the zip_entry... class.

Example

 <?php
$zip = zip_open ( "test.zip" ) ;

zip_read ( $zip ) ;

// Some code...

zip_close ( $zip ) ;
?>

grammar

 zip_read ( zip )
parameter describe
zip Required. Specifies the zip resource to be read (the zip file opened by zip_open()).
Similar Functions