downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

ZipArchive::getFromName> <ZipArchive::getCommentName
[edit] Last updated: Fri, 24 Jun 2011

view this page in

ZipArchive::getFromIndex

(PHP 5 >= 5.2.0, PECL zip >= 1.3.0)

ZipArchive::getFromIndexبازگرداندن محتوای ورودی با استفاده از اندیس

Description

mixed ZipArchive::getFromIndex ( int $index [, int $flags ] )

بازگرداندن محتوای ورودی با استفاده از اندیس.

Parameters

index

اندیس ورودی

flags

پرچم‌ها برای باز کردن آرشیو. مقادیر زیر مجاز هستند.

  • ZIPARCHIVE::FL_UNCHANGED

  • ZIPARCHIVE::FL_COMPRESSED

Return Values

بازگرداندن محتوای ورودی در صورت موفقیت or FALSE on failure.

Examples

Example #1 دریافت محتوای فایل

<?php
$zip 
= new ZipArchive;
if (
$zip->open('test.zip') === TRUE) {
    echo 
$zip->getFromIndex(2);
    
$zip->close();
} else {
    echo 
'failed';
}
?>


add a note add a note User Contributed Notes ZipArchive::getFromIndex - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites