1

I tried this but not work

<?php
  $za = new ZipArchive();

  $za->open('zip1.zip');

  for ($i=0; $i < $za->numFiles ; $i++) { 
    $stat = $za->statIndex($i);
    print_r("<img src=" .basename($stat['name']) . PHP_EOL . "/>");
  }
?>
Abhijith Sasikumar
  • 8,276
  • 4
  • 28
  • 41
hika
  • 11
  • 1
  • is this your answer ? https://stackoverflow.com/a/20206420/12232340 –  Feb 20 '20 at 07:30

1 Answers1

0

Take a look on the function zip_entry_read()

An example how to use it you can find here

CodyKL
  • 1,004
  • 4
  • 14