(PHP 5 >= 5.1.0)
SplFileObject::fgetc — Gets character from file
Gets a character from the file.
この関数にはパラメータはありません。
Returns a string containing a single character read from the file or FALSE on EOF.
例1 SplFileObject::fgetc example
<?php
$file = new SplFileObject('file.txt');
while (false !== ($char = $file->fgetc())) {
echo "$char\n";
}
?>