valid() ) { // Returns the current entry (ezcArchiveEntry). $entry = $archive->current(); // ezcArchiveEntry has an __toString() method. echo $entry, "\n"; // Extract the current archive entry to /tmp/target_location/ $archive->extractCurrent( "/tmp/target_location/" ); $archive->next(); } ?>