PHP - Function fclose()
bool fclose ( resource $handle );
Definition and Usage
The file pointed to by handle is closed.
|Sr.No||Parameter & Description|
The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen().
It returns TRUE on success or FALSE on failure.
Following is the usage of this function −
<?php $handle = fopen('sampel.txt', 'r'); fclose($handle); ?>