Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

bzclose

Description

The bzclose of bzip2 for PHP closes a bzip2 file.

Syntax

bzclose(
    resource $bz
): bool

Parameters

bz

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

Return

Returns true on success or false on failure.

Examples

1 · bz

<?

$file = $_SERVER["DOCUMENT_ROOT"] . "/assets/bz2/1.bz2";
$mode = "r";

$bz = bzopen($file, $mode);

    if($bz === false)
    {
        die("bzopen");
    }

$return = bzclose($bz);

var_export($return);

?>
true
HomeMenu