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

ZipArchive::getStream()

ZipArchive::getStream - Get a file handler to the entry defined by its name (read only).

Syntax

resource ZipArchive::getStream (string $name)

Arguments

  • name - The name of the entry to use.

Description

Get a file handler to the entry defined by its name. For now it only supports read operations.

Version

PHP 5.2.0, PECL zip >= 1.1.0

Return value

Returns a file pointer (resource) on success or FALSE on failure.