PHP 8.4.0 RC4 available for testing

RarArchive::isSolid

rar_solid_is

(PECL rar >= 2.0.0)

RarArchive::isSolid -- rar_solid_isCheck whether the RAR archive is solid

Açıklama

Nesne yönelimli kullanım (method):

public RarArchive::isSolid(): bool

Yordamsal kullanım:

rar_solid_is(RarArchive $rarfile): bool

Check whether the RAR archive is solid. Individual file extraction is slower on solid archives.

Bağımsız Değişkenler

rarfile

A RarArchive object, opened with rar_open().

Dönen Değerler

Returns true if the archive is solid, false otherwise.

Örnekler

Örnek 1 Nesne yönelimli kullanım

<?php
$arch1
= RarArchive::open("store_method.rar");
$arch2 = RarArchive::open("solid.rar");
echo
"$arch1: " . ($arch1->isSolid()?'yes':'no') ."\n";
echo
"$arch2: " . ($arch2->isSolid()?'yes':'no') . "\n";
?>

Yukarıdaki örnek şuna benzer bir çıktı üretir:

RAR Archive "C:\php_rar\trunk\tests\store_method.rar": no
RAR Archive "C:\php_rar\trunk\tests\solid.rar": yes

Örnek 2 Yordamsal kullanım

<?php
$arch1
= rar_open("store_method.rar");
$arch2 = rar_open("solid.rar");
echo
"$arch1: " . (rar_solid_is($arch1)?'yes':'no') ."\n";
echo
"$arch2: " . (rar_solid_is($arch2)?'yes':'no') . "\n";
?>

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top