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

ZipArchive::locateName()

ZipArchive::locateName - Returns the index of the entry in the archive

Syntax

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

Arguments

  • name - The name of the entry to look up
  • flags - The flags are specified by ORing the following values, or 0 for none of them. ZIPARCHIVE::FL_NOCASE ZIPARCHIVE::FL_NODIR

Description

Locates an entry using its name.

Version

PHP 5.2.0, PECL zip >= 1.5.0

Return value

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