(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

fgetc -- Gets character from file pointer


string fgetc (int fp)

Returns a string containing a single character read from the file pointed to by fp. Returns FALSE on EOF.

The file pointer must be valid, and must point to a file successfully opened by fopen(), popen(), or fsockopen().

See also fread(), fopen(), popen(), fsockopen(), and fgets().