Forum und email

fgetss

(PHP 4, PHP 5)

fgetss — Haalt een regel op van de bestands pointer en stript de HTML tags

Beschrijving

string fgetss ( resource $handle , int $length [, string $allowable_tags ] )

Hetzelfde als fgets(), behalve dat fgetss probeert alle HTML en PHP tags te strippen van de tekst die hij leest.

Je kan de optionele derde parameter gebruiken om aan te geven welke tags niet gestript moeten worden.

Note: allowable_tags is toegevoegd in PHP 3.0.13, PHP 4.0.0.

Note: If you are having problems with PHP not recognizing the line endings when reading files either on or created by a Macintosh computer, you might want to enable the auto_detect_line_endings run-time configuration option.

Zie ook fgets(), fopen(), fsockopen(), popen(), en strip_tags().