Home > PHP > Function > > ZipArchive::extractTo()

ZipArchive::extractTo()

ZipArchive::extractTo - Extract the archive contents

Syntax

bool ZipArchive::extractTo (string $destination, mixed $entries)

Arguments

  • destination - Location where to extract the files.
  • entries - The entries to extract. It accepts either a single entry name or an array of names.

Description

Extract the complete archive or the given files to the specified destination.

Version

PHP 5.2.0, PECL zip >= 1.1.0

Return value

Returns TRUE on success or FALSE on failure.