Menu Samaritan's Purse

FGETC

Gets character from file pointer

SYNTAX

fgetc ( resource $handle ) : string

PARAMETERS

handle

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

RETURN

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

EXAMPLES

H
e
l
l
o

PHP