PHP zip_entry_name() Function

zip_entry_name — Retrieve the name of a directory entry.

string zip_entry_name ( resource $zip_entry )

Returns the name of the specified directory entry.

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

Example -

The output of the code above will be:

Name: ziptest.txt Name: htmlziptest.html

zip_entryA directory entry returned by zip_read().

Return Values-

The name of the directory entry.