How to use zip read function in PHP

In this article I am going to explain about zip_read function in PHP.
  • 1571

PHP zip_read function

The PHP zip_read function is used to reads the file in a open zip archive.


Syntax of zip_read function

zip_read(Zip)

Parameters in zip_raed function

It has only one parameter:

Parameter Description
Zip It specifies the zip resource to read.

Example of PHP zip_read function

<?php

$Zip=zip_open();

if(!$Zip)

{

echo "Unable to open zip file";

}

else

{

zip_read($Zip);

}

zip_close($Zip);

?>


You may also want to read these related articles :
here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.