File::close()

File::close() – closes an open file pointer

Synopsis

require_once 'File.php';

mixed File::close ( string $filename , string $mode )

Description

Parameter

Return value

Throws

Note

This function can be called statically.

See

Example

Using File::close()

<?php
require_once 'File.php';

$e File::close('test.txt'FILE_MODE_WRITE);

if (
PEAR::isError($e)) {
    echo 
'Could not close file : ' $e->getMessage();
} else {
    echo 
"Successfully closed file test.txt\n";
}
?>
build a path from given parts array (Previous) retrieves the system's temporary directory (Next)
Last updated: Wed, 23 Jul 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.