|
PHP5中文手册
ZipArchive::addFromString(No version information available, might be only in CVS) ZipArchive::addFromString — Add a file to a ZIP archive using its contents 说明
bool ZipArchive::addFromString
( string $localname
, string $contents
)
Add a file to a ZIP archive using its contents. 参数
返回值如果成功则返回 TRUE,失败则返回 FALSE。 范例Example#1 Add an entry to a new archive
<?php Example#2 Add file to a directory inside an archive
<?php |