(PHP 5 >= 5.2.0, PHP 7, PECL zip >= 1.1.0)
锟斤拷锟�
一锟斤拷锟斤拷 Zip 压锟斤拷锟斤拷锟侥硷拷锟芥档锟斤拷
锟斤拷摘要
ZipArchive
{
addFile
(
string $filename
[,
string $localname
= NULL
[,
int $start
= 0
[,
int $length
= 0
]]] ) :
bool
addGlob
(
string $pattern
[,
int $flags
= 0
[,
array $options
= array()
]] ) :
bool
addPattern
(
string $pattern
[,
string $path
= "."
[,
array $options
= array()
]] ) :
bool
public count
(
void
) :
int
getFromIndex
(
int $index
[,
int $length
= 0
[,
int $flags
]] ) :
string
getFromName
(
string $name
[,
int $length
= 0
[,
int $flags
]] ) :
string
open
(
string $filename
[,
int $flags
] ) :
mixed
renameName
(
string $name
,
string $newname
) :
bool
statIndex
(
int $index
[,
int $flags
] ) :
array
statName
(
string $name
[,
int $flags
] ) :
array
}
锟斤拷锟斤拷
- status
-
Zip Archive 锟斤拷状态
- statusSys
-
Zip Archive 锟斤拷系统状态
- numFiles
-
压锟斤拷锟斤拷锟斤拷锟斤拷募锟斤拷锟�
- filename
-
锟斤拷锟侥硷拷系统锟斤拷锟斤拷募锟斤拷锟�
-
压锟斤拷锟斤拷锟斤拷注锟斤拷