RarArchive::isSolid
rar_solid_is
(PECL rar >= 2.0.0)
RarArchive::isSolid -- rar_solid_is — RAR 아카이브가 솔리드인지 확인
설명
Object-oriented style (method):
public RarArchive::isSolid(): bool
Procedural style:
rar_solid_is(RarArchive $rarfile
): bool
RAR 아카이브가 견고한지 확인하십시오. 개별 파일 추출은 솔리드 아카이브에서 더 느립니다.
매개변수
rarfile
- rar_open()으로 열린 RarArchive 객체.
반환 값
아카이브가 솔리드이면 true
를 반환하고 그렇지 않으면 false
를 반환합니다.
Examples
예제 #1 객체 지향 스타일
<?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";
?>
위의 예는 다음과 유사한 결과를 출력합니다.
RAR Archive "C:\php_rar\trunk\tests\store_method.rar": no RAR Archive "C:\php_rar\trunk\tests\solid.rar": yes
예제 #2 절차 스타일
<?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";
?>