PHP.nl

fclose

fclose

Closes an open file pointer

bool **fclose** resource $stream

The file pointed to by is closed. stream

stream The file pointer must be valid, and must point to a file successfully opened by or . fopen``fsockopen

return.success

Voorbeeld: A simple example

<?php

$handle = fopen('somefile.txt', 'r');

fclose($handle);

?>

fopen``fsockopen