File::rewind()

File::rewind() – rewinds a file pointer

Synopsis

require_once 'File.php';

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

Description

Parameter

Return value

Throws

Note

This function can be called statically.

See

Example

Using File::rewind()

<?php
require_once 'File.php';

$e File::rewind('test.txt'FILE_MODE_READ);
 
if (
PEAR::isError($e)) {
    echo 
'Could not rewind the file : ' $e->getMessage();
} else {
    echo 
"File test.txt successfully rewound\n";
}
?>
File::readLine() (Previous) File::skipRoot() (Next)
Last updated: Tue, 02 Jun 2009 — 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.