PHP fclose () function
Definisi dan Penggunaan
fclose () fungsi menutup file dibuka.
Jika berhasil mengembalikan fungsi TRUE, pada kegagalan kembali FALSE.
tatabahasa
fclose(file)
参数 | 描述 |
---|---|
file | 必需。规定要关闭的文件。 |
contoh
<?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);
?>
Lengkapi manual PHP Filesystem Referensi