PHP function fclose()

Availability in PHP 4.0

Closes an open file pointer

Parameters

Parameter Data type Default value Note
$handle resource not The file pointer must be valid, and must point to a file successfully opened by fopen or fsockopen.

Return values

bool

Returns true on success, otherwise false on failure.

Other resources

Official fclose documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.