PHP의 FCLOSE () 함수
정의 및 사용
FCLOSE () 함수는 열린 파일을 닫습니다.
함수가 TRUE를 반환 성공하면, 실패 할 경우 FALSE를 반환합니다.
문법
fclose(file)
参数 | 描述 |
---|---|
file | 必需。规定要关闭的文件。 |
예
<?php
$file = fopen("test.txt","r");
//some code to be executed
fclose($file);
?>
$file = fopen("test.txt","r");
//some code to be executed
fclose($file);
?>
PHP 파일 시스템 참조 설명서를 완료