|
RarEntry::extract(PECL rar >= 0.1) RarEntry::extract — Extract entry from the archive Описание
public bool RarEntry::extract
( string $dir
[, string $filepath = ''
[, string $password = NULL
[, bool $extended_data = false
]]] )
RarEntry::extract() extracts the entry's data. It will create new file in the specified dir with the name identical to the entry's name, unless the second argument is specified. See below for more information. Список параметров
Внимание
Prior to version 2.0.0, this function would not handle relative paths correctly. Use realpath() as a workaround. Возвращаемые значенияВозвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки. Список изменений
Примеры
Пример #1 RarEntry::extract() example
<?php Пример #2 How to extract all files in archive:
<?php |
|||||||