update : 2015.11.03
php.shukuma.com검색:
|
PharData::addFromString(PHP >= 5.3.0, PECL phar >= 2.0.0) PharData::addFromString — Add a file from the filesystem to the tar/zip archive 설명
bool PharData::addFromString
( string
$localname
, string $contents
)With this method, any string can be added to the tar/zip archive. The file will be stored in the archive with localname as its path. This method is similar to ZipArchive::addFromString(). 인수
반환값no return value, exception is thrown on failure. 예제
Example #1 A PharData::addFromString() example
<?php 참고
|