PHP » PYTHON |
login |
register |
about
|
|
fgetss(PHP 4, PHP 5) fgetss — Gets line from file pointer and strip HTML tags Description
string fgetss
( resource $handle
[, int $length
[, string $allowable_tags
]] )
Identical to fgets(), except that fgetss() attempts to strip any HTML and PHP tags from the text it reads. Parameters
Return ValuesReturns a string of up to length - 1 bytes read from the file pointed to by handle , with all HTML and PHP code striped. If an error occurs, returns FALSE. Changelog
Example #1 Reading a PHP file line-by-line
<?phpThe above example will output something similar to: Welcome! Today is the of . Text outside of the HTML block.
Notes
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|