Home > PHP > Function > Bzip2 > bzread()

bzread()

bzread - Binary safe bzip2 file read

Syntax

string bzread (resource $bz, int $length)

Arguments

  • bz - The file pointer. It must be valid and must point to a file successfully opened by bzopen().
  • length - If not specified, bzread() will read 1024 (uncompressed) bytes at a time.

Description

bzread() reads from the given bzip2 file pointer.

Version

PHP 4.0.4, 5

Return value

Returns the uncompressed data, or FALSE on error.