Forum : What is fclose() in PHP?
Brief description  about Online courses   join in Online courses
View Abhijit  Paul 's Profile

What is fclose() in PHP?

What is fclose() in PHP?????
Asked by Abhijit Paul | Mar 17, 2010 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
Hi Abhijit,
The fclose() function is used to close an open file:
<?php
$file = fopen("test.txt","r");

some code to be executed

fclose($file);
?>
Mar 17, 2010