The fclose() function closes an open file.
This function returns TRUE if successful and FALSE if failed.
fclose(file)
parameter | describe |
---|---|
file | Required. Specifies the file to be closed. |
<?php$file = fopen("test.txt","r");//some code to be executedfclose($file);?>