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ファイルシステムリファレンスマニュアルを完了