ZipArchive
PHP Manual

ZipArchive::statIndex

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

ZipArchive::statIndexتابع دریافت اطلاعات درباره ورودی تعریف شده با اندیس آن

Description

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

تابع دریافت اطلاعات درباره ورودی تعریف شده با اندیس آن.

Parameters

index

اندیس ورودی

flags

ZIPARCHIVE::FL_UNCHANGED ممکن است ORed نسبت به اطلاعات درخواستی درباره فایل اصلی در آرشیو باز می‌گرداند بدون توجه به تغییرات.

Return Values

بازگرداندن آرایه جزئیات ورودی or FALSE on failure.

Examples

Example #1 کپی اطلاعات ورودی

<?php
$zip 
= new ZipArchive;
$res $zip->open('test.zip');
if (
$res === TRUE) {
    
print_r($zip->statIndex(3));
    
$zip->close();
} else {
    echo 
'failed, code:' $res;
}
?>

The above example will output something similar to:

Array
(
    [name] => foobar/baz
    [index] => 3
    [crc] => 499465816
    [size] => 27
    [mtime] => 1123164748
    [comp_size] => 24
    [comp_method] => 8
)

ZipArchive
PHP Manual