Name
fgetss
Synopsis
string fgetss(resourcehandle
[, intlength
[, stringtags
]])
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. Any PHP and HTML tags in the string,
except those listed in tags
, are stripped
before returning it. Returns false
if any error occurs.
Get Programming PHP, 3rd 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.