diskfreespace
feof
파일시스템 함수 목록
PHP Manual

# fclose

(PHP 4, PHP 5)

fclose — Closes 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);
?>`

### 참고

- fopen() - Opens file or URL
- fsockopen() - Open Internet or Unix domain socket connection

diskfreespace
feof
파일시스템 함수 목록
PHP Manual