- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
zip_close() function in PHP
The zip_close() function is used to close the zip file archive. The zip is opened by the zip_open() function.
Syntax
zip_close(zip_file)
Parameters
zip_file − A zip file opened with zip_open() is to be mentioned here. This is the file we want to close.
Return
The zip_close() function returns nothing.
Example
<?php $zip_file = zip_open("new.zip"); zip_read($zip_file); echo "File will be closed now"; zip_close($zip); ?>
Output
File will be closed now
Advertisements