Name
fgets
Synopsis
string fgets(inthandle
, intlength
)
Reads a string from the file referenced by
handle
; a string of no more than
length
characters is returned, but the
read ends at length
- 1 (for the
end-of-line character) characters, at an end-of-line character, or
at EOF. Returns false
if any
error occurs.
Get Programming PHP, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.