File::readChar()

File::readChar() – reads a single character from a file

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

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;
}
?>
reads a complete file (Previous) reads a single line from a file (Next)
Last updated: Sun, 19 Oct 2014 — 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.