(PECL rar >= 0.1)
rar_entry_get — Get entry object from the Rar archive
Get entry object from the Rar archive.
A Rar file resource, opened with rar_open().
Path to the entry within the Rar archive.
rar_entry_get() returns entry object or FALSE on error.
Example #1 rar_entry_get() example
<?php
$rar_file = rar_open('example.rar') or die("Failed to open Rar archive");
$entry = rar_entry_get($rar_file, 'Dir/file.txt') or die("Failed to find such entry");
print_r($entry);
?>