File::rewind()
File::rewind() – rewinds a file pointer
Synopsis
require_once 'File.php';
mixed File::rewind (
string $filename
,
string $mode
)
Описание
Parameter
Return value
Throws
Замечание
This function can be called statically.
See
Пример
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";
}
?>