zip_entry_read — Read from an open directory entry
string zip_entry_read ( resource $zip_entry [, int $length = 1024 ] )
Reads from an open directory entry.
The zip_entry_read() function gets the contents from a open zip archive entry.
Name: ziptest.txt
File Contents:
Hello World! This is a test for a the zip functions in PHP.
Name: htmlziptest.html
File Contents:
Hello World!
This is a test for a the zip functions in PHP.
Parameter | Description |
---|---|
zip_entry | A directory entry returned by zip_read(). |
length | The number of bytes to return. |
Returns the data read, empty string on end of a file, or FALSE on error.