zip_entry_name() function in PHP

The zip_entry_name() function returns the name of the zip archive file.

Syntax

zip_entry_name(zip_entry)

Parameters

  • zip_entry − A zip file opened with zip_open() is to be mentioned here.

Return

The zip_entry_name() function returns the name of the zip archive file.

The following is an example. Let’s say we have 5 files in the zip archive "new.zip".

Example

";
      }
      zip_close($zip);
   }
?>

Output

File Name = amit.txt
File Name = peter.txt
File Name = result.html
File Name = demo.java
File Name = settings.ini
Updated on: 2020-06-26T09:57:57+05:30

89 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements