PHP zip_entry_read() — legacy ZIP API

zip_entry_read() reads bytes from an open archive entry. PHP deprecated this procedural function in 8.0. For new code, use ZipArchive::getStream().

A simple example

zip_entry_read()

  1. Start with Open member containing AB
  2. Do this Read one byte
  3. Result A
The first byte is A. A subsequent one-byte read would return B.

Use ZipArchive to read entries by name in modern PHP.

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