PHP 8.3.4 Released!

fgetss

(PHP 4, PHP 5, PHP 7)

fgetssPrende una riga da un puntatore a file ed elimina i tag HTML

Descrizione

fgetss(resource $handle, int $length = ?, string $allowable_tags = ?): string

Identica a fgets(), eccetto per il fatto che fgetss tenta di eliminare tutti i tag HTML e PHP dal testo che legge.

Puoi utilizzare il terzo parametro (opzionale) per specificare quali tag non devono essere eliminati.

Nota:

Il parametro allowable_tags è stato aggiunto in PHP 3.0.13, PHP 4.0.0.

Il parametro length è facoltativo dal PHP 5.

Nota: Se si hanno problemi con il PHP che non riconosce i fine linea leggendo file creati o ospitati su un computer Macintosh, si può abilitare l'opzione auto_detect_line_endings della configurazione di runtime.

Vedere anche fgets(), fopen(), fsockopen(), popen() e strip_tags().

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top