fclose() function is used to close an open file:
Syntax:
Syntax:
fclose()
Example:<?php
$file = fopen("phpcode.txt","r");
//some code to be executed
fclose($file);
?>
$file = fopen("phpcode.txt","r");
//some code to be executed
fclose($file);
?>



