Rar 函数
PHP 手册

rar_list

(PECL rar >= 0.1)

rar_listGet entries list from the Rar archive

说明

array rar_list ( resource $rar_file )

Get entries list from the Rar archive.

参数

rar_file

A Rar file resource, opened with rar_open().

返回值

rar_list() returns array of entries or FALSE on error.

范例

Example #1 rar_list() example

<?php

$rar_file 
rar_open('example.rar') or die("Failed to open Rar archive");

$entries_list rar_list($rar_file);

print_r($entries_list);

?>


Rar 函数
PHP 手册