root/ext/zip/examples/extractAll.php

/* [<][>][^][v][top][bottom][index][help] */
<?php
$zip = new ZipArchive();

echo $zip->filename . "\n";
$zip->open("test.zip");
/*
$zip->addFile("./modules/");
$zip->addFile("./testempty");
*/
echo $zip->status . "\n";
echo $zip->statusSys . "\n";

echo $zip->numFiles . "\n";
echo $zip->filename . "\n";
var_dump($zip);
$files = array('test', 'testdir/test2');
if (!$zip->extractTo("./testext/path/to")) {
        echo "error!\n";
        echo $zip->status . "\n";
        echo $zip->statusSys . "\n";

}

$zip->close();

/* [<][>][^][v][top][bottom][index][help] */