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

ZipArchive::getFromName()

ZipArchive::getFromName - Returns the entry contents using its name

Syntax

mixed ZipArchive::getFromName (string $name, int $flags)

Arguments

  • name - Name of the entry
  • flags - The flags to use to open the archive. the following values may be ORed to it. ZIPARCHIVE::FL_UNCHANGED ZIPARCHIVE::FL_COMPRESSED

Description

Returns the entry contents using its name.

Version

PHP 5.2.0, PECL zip >= 1.1.0

Return value

Returns the contents of the entry on success or FALSE on failure.