Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Bzip2 Functionsbzcompress>
^Bzip2 FunctionsLast updated: Mon, 26 Oct 2026

bzclose

(PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8)

bzclose — Close a bzip2 file

Description

function bzclose(resource $bz): bool

Closes the given bzip2 file pointer.

Parameters

bz

The file pointer. It must be valid and must point to a file successfully opened by bzopen().

Return Values

Returns true on success or false on failure.

See Also

  • bzopen() - Opens a bzip2 compressed file

<Bzip2 Functionsbzcompress>
^Bzip2 FunctionsLast updated: Mon, 26 Oct 2026