..


Sponsored Links

fclose

The function fclose is used to conclude the work on the files as it plays the opposite role to that played by fopen . In essence, the function fclose closes the file pointer.

The only required parameter is, of course, the file pointer.

Here's an example:

 



 <? Php







 / / Open the file







 $ Myfile = fopen ('example.txt', 'w');









 / / Any operation ...







 / / Any operation ...







 / / Any operation ...









 / / Close







 fclose ($ myfile);







 ?>

 

In the same category ...
E-Learning
Linux (Course) Linux (Course)
Complete guide to open-source system. From 49 €.
MySQL (Course) MySQL (Course)
Management of open-source database. From 39 €.
PHP (Course) PHP (Course)
Full course for creating dynamic Web sites. From 49 €.
Sponsored Links