php man page for fclose

Query: fclose

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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) - linux
fclose(3) - netbsd
fcloseall(3) - freebsd
fread(3) - php
rewind(3) - php
Similar Topics in the Unix Linux Community
getline() and fclose()