예약 상수
Rar 함수 목록
Rar
PHP Manual

# 예제

Example #1 Rar extension overview example

`<?php
$rar_file = rar_open('example.rar') or die("Can't open Rar archive");
$entries = rar_list($rar_file);
foreach ($entries as $entry) {
echo 'Filename: ' . $entry->getName() . "\n";
echo 'Packed size: ' . $entry->getPackedSize() . "\n";
echo 'Unpacked size: ' . $entry->getUnpackedSize() . "\n";
$entry->extract('/dir/extract/to/');
}
rar_close($rar_file);
?>`

This example opens a Rar file archive and extracts each entry to the specified directory.

예약 상수
Rar 함수 목록
Rar
PHP Manual