File::readChar()

File::readChar() – ファイルから 1 バイトを読み込む

Synopsis

require_once 'File.php';

mixed File::readCharChar ( string $filename , mixed $lock = = false )

Description

Parameter

Return value

Throws

Note

This function can be called statically.

See

Example

File::readChar() の使用

<?php
require_once 'File.php';

$e File::readChar('test.txt');
 
if (
PEAR::isError($e)) {
    echo 
'ファイルから文字を読み込めませんでした : ' $e->getMessage();
} else {
    echo 
$e;

?>