PHP fclose() 函數(shù)
完整的 PHP Filesystem 參考手冊
定義和用法
fclose() 函數(shù)關(guān)閉打開的文件。
該函數(shù)如果成功則返回 TRUE,如果失敗則返回 FALSE。
語法
參數(shù) | 描述 |
file | 必需。規(guī)定要關(guān)閉的文件。 |
實例
<?php
$file = fopen("test.txt","r");
//some code to be executed
fclose($file);
?>
完整的 PHP Filesystem 參考手冊