September 2001
Intermediate to advanced
768 pages
32h 45m
English
string fgetss(resource file_handle, int bytes)
Reads a line from a file, stripping HTML and PHP tags.
Returns:
Current line; FALSE on error
Description:
fgetss() is functionally like fgets(), except the line of text returned is parsed first and any HTML and PHP tags are removed. If a newline or EOF occurs before the number of byes specified is read, fgetss() returns the bytes read up to this point. This can be extremely useful when reading and processing lines of text from a file, pipe, or socket.
Warning:
Because some of the filesystem functions to read/write from files partially share the same code, one or more of the bugs reported elsewhere may also apply to this function.
Example:
$fh ... |
Read now
Unlock full access