php-internal-docs
8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
extractAll.php
Go to the documentation of this file.
1
<?php
2
$zip
=
new
ZipArchive
();
3
4
echo
$zip
->filename .
"\n"
;
5
$zip
->open(
"test.zip"
);
6
/*
7
$zip->addFile("./modules/");
8
$zip->addFile("./testempty");
9
*/
10
echo
$zip
->status .
"\n"
;
11
echo
$zip
->statusSys .
"\n"
;
12
13
echo
$zip
->numFiles .
"\n"
;
14
echo
$zip
->filename .
"\n"
;
15
var_dump
(
$zip
);
16
$files
= array(
'test'
,
'testdir/test2'
);
17
if
(!
$zip
->extractTo(
"./testext/path/to"
)) {
18
echo
"error!\n"
;
19
echo
$zip
->status .
"\n"
;
20
echo
$zip
->statusSys .
"\n"
;
21
22
}
23
24
$zip
->close();
var_dump
var_dump(mixed $value, mixed ... $values)
Definition
basic_functions.stub.php:3789
ZipArchive
Definition
php_zip.stub.php:68
$zip
$zip
Definition
create.php:8
$files
$files
Definition
ucgendat.php:59
ext
zip
examples
extractAll.php
Generated on Sat Aug 23 2025 01:46:12 for php-internal-docs by
1.13.2