PHP fclose()関数
完全な PHP Filesystem リファレンスマニュアル
定義と用法
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 Filesystem リファレンスマニュアル その他の拡張機能