File::readChar()
File::readChar() – reads a single character from a file
Synopsis
require_once 'File.php';
mixed File::readCharChar (
string $filename
,
mixed $lock
= false
)
Описание
Parameter
Return value
Throws
Замечание
This function can be called statically.
See
Пример
Using File::readChar()
<?php
require_once 'File.php';
$e = File::readChar('test.txt');
if (PEAR::isError($e)) {
echo 'Could not read char from file : ' . $e->getMessage();
} else {
echo $e;
}
?>