fclose(3) php man page | unix.com

Man Page: fclose

Operating Environment: php

Section: 3

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)
Related Man Pages
fclose(3) - mojave
fclose(3) - redhat
fread(3) - php
fgetc(3) - php
fpassthru(3) - php
Similar Topics in the Unix Linux Community
getline() and fclose()