FCLOSE(3) 1 FCLOSE(3)
fclose - Closes an open file pointer
SYNOPSIS
bool fclose (resource $handle)
DESCRIPTION
The file pointed to by $handle is closed.
PARAMETERS
o $handle
- The file pointer must be valid, and must point to a file successfully opened by fopen(3) or fsockopen(3).
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
A simple fclose(3) example
<?php
$handle = fopen('somefile.txt', 'r');
fclose($handle);
?>
SEE ALSO
fopen(3), fsockopen(3).
PHP Documentation Group FCLOSE(3)