fgets

 string fgets ( resource $handle [, int $length ] ) 

説明

Gets a line from file pointer.

戻り値

Returns a string of up to length - 1 bytes read from the file pointed to by handle. If there is no more data to read in the file pointer, then FALSE is returned. If an error occurs, FALSE is returned.