PHP zip_entry_filesize() — legacy ZIP API

zip_entry_filesize() reports the uncompressed size of a ZIP entry in bytes. PHP deprecated this procedural function in 8.0. For new code, use ZipArchive::statIndex().

A simple example

zip_entry_filesize()

  1. Start with Member containing ASCII AB
  2. Do this Read its uncompressed size
  3. Result 2 bytes
This size describes the original data, including both letters.

Use ZipArchive to read entries by name in modern PHP.

To run the examples, save bbminfo.zip and bbminfo-nested-folder.zip beside your script and run it from that directory.