this my code
$z = new ZipArchive();
if ($z->open('file.zip')) {
for ($i=0; $i<$z->numFiles;$i++) {
$aZipDtls = $z->statIndex($i);
echo $aZipDtls['name'].'<br>';
}
}
it returns
docs/
docs/INSTALL.html
docs/auth_api.html
docs/install/
docs/install/index.htm
but i want it return a files tree like that
docs/
-INSTALL.html
-auth_api.html
install
-index.htm
to make it ul and li and i want to do this do use the PHP File Tree