(PECL rar >= 0.1)
rar_list — Get entries list from the Rar archive
Get entries list from the Rar archive.
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);
?>