Open and close file "test.txt":
<?php
$file = fopen("test.txt", "r");
fclose($file);
?>
Run Example »
The fclose() function closes an open file pointer.
Note: The file must have been opened by fopen() or fsockopen().
fclose(
filepointer)
Parameter | Description |
---|---|
filepointer | Required. Specifies the file to close |
Return Value: | TRUE on success, FALSE on failure |
---|---|
PHP Version: | 4.0+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!