当前位置: 首页 > 网络学院 > 服务端脚本教程 > PHP > fclose() 函数
The fclose() function closes an open file.
fclose()函数的作用是:关闭文件。
This function returns TRUE on success or FALSE on failure.
函数执行成功返回True,执行失败返回False。
fclose(file) |
| Parameter 参数 | Description 描述 |
|---|---|
| file | Required. Specifies the file to close 必要参数。指定需要被关闭的文件 |
<?php
$file = fopen("test.txt","r");
//some code to be executed
fclose($file);
?> |
评论 (0) All