PHP function fgetss()

Availability in PHP 4.0

Gets line from file pointer and strip HTML tags

Parameters

Parameter Data type Default value Note
$handle resource not
$length int null, Length of the data to be retrieved.
$allowable_tags string null

Return values

string

a string of up to length - 1 bytes read from the file pointed to by handle, with all HTML and PHP code stripped.

If an error occurs, returns false.

Other resources

Official fgetss documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.