Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<rar_wrapper_cache_statsRarArchive::close>
^RarLast updated: Mon, 26 Oct 2026

The RarArchive class

(PECL rar >= 2.0.0)

Introduction

This class represents a RAR archive, which may be formed by several volumes (parts) and which contains a number of RAR entries (i.e., files, directories and other special objects such as symbolic links).

Objects of this class can be traversed, yielding the entries stored in the respective RAR archive. Those entries can also be obtained through RarArchive::getEntry() and RarArchive::getEntries().

Class synopsis

final class RarArchive implements Traversable {
/* Methods */
public function close(): bool
public function getComment(): string
public function getEntries(): array|false
public function getEntry(string $entryname): RarEntry|false
public function isBroken(): bool
public function isSolid(): bool
public static function open(string $filename, string $password = NULL, callable $volume_callback = NULL): RarArchive|false
public function setAllowBroken(bool $allow_broken): bool
public function __toString(): string
}

Table of Contents


<rar_wrapper_cache_statsRarArchive::close>
^RarLast updated: Mon, 26 Oct 2026