fclose
Closes an open file pointer
Description
bool fclose(resource $stream
)
Parameters
-
stream
-
The file pointer must be valid, and must point to a file successfully
opened by fopen or fsockopen.
Return Values
Returns true
on success or false
on failure.
Examples
Example #1 A simple fclose example
<?php
$handle = fopen('somefile.txt', 'r');
fclose($handle);
?>