파일시스템 함수 목록
PHP Manual

fclose

(PHP 4, PHP 5)

fcloseCloses an open file pointer

설명

bool fclose ( resource $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);

?>

참고


파일시스템 함수 목록
PHP Manual