Gen. partnerAlgotech

PHP function fclose()

Closes an open file pointer

|
September 11, 2019

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

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.