PHP zip_entry_open() — legacy ZIP API

zip_entry_open() opens an archive entry for reading. PHP deprecated this procedural function in 8.0. For new code, use ZipArchive::getStream().

A simple example

zip_entry_open()

  1. Start with Archive member a.txt containing A
  2. Do this Open that entry for reading
  3. Result Entry stream ready
Opening the selected member lets the next read consume its data.

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.