(PHP 4, PHP 5, PHP 7)
fclose — Closes an open file pointer
$handle
)
The file pointed to by handle
is closed.
handle
The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen().
성공 시 TRUE
를, 실패 시 FALSE
를 반환합니다.
Example #1 A simple fclose() example
<?php
$handle = fopen('somefile.txt', 'r');
fclose($handle);
?>